Class TreeNodeAdvPaintBackgroundEventArgs
Represents an event args that are passed in the NodeBackGround event of the TreeViewAdv control. Contains information about the appearance of the node background and the location and sizes of different parts of the node.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TreeNodeAdvPaintBackgroundEventArgs : EventArgs
Constructors
TreeNodeAdvPaintBackgroundEventArgs(TreeNodeAdv, Graphics, Boolean, Boolean, Boolean, Boolean, BrushInfo)
Initialize a new instance of TreeNodeAdvPaintBackgroundEventArgs class.
Declaration
public TreeNodeAdvPaintBackgroundEventArgs(TreeNodeAdv node, Graphics g, bool selected, bool active, bool fullRowSelect, bool hotTracked, BrushInfo brushInfo)
Parameters
Type | Name | Description |
---|---|---|
TreeNodeAdv | node | The node associated with event |
System.Drawing.Graphics | g | The instance of Graphics class |
System.Boolean | selected | Indicates whether the Node is selected |
System.Boolean | active | Indicates whether the Node is active |
System.Boolean | fullRowSelect | Indicates whether FullRowSelect is enabled |
System.Boolean | hotTracked | Indicates whether HotTracking is enabled |
BrushInfo | brushInfo | The BrushInfo with which the background will be painted |
Properties
Active
Gets or sets a value indicating whether the node is Active.
Declaration
public bool Active { get; set; }
Property Value
Type |
---|
System.Boolean |
Bounds
Get the bounds of TreeNodeAdv.
Declaration
public Rectangle Bounds { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
BrushInfo
Gets or sets the BrushInfo with which the background will be painted by default, if you don't mark this event as handled.
Declaration
public BrushInfo BrushInfo { get; set; }
Property Value
Type |
---|
BrushInfo |
Remarks
You can optionally change the properties of this BrushInfo object or provide a new BrushInfo without marking this event as handled Handled.
FullRowSelect
Gets a value indicating whether the FullRowSelect is enabled.
Declaration
public bool FullRowSelect { get; }
Property Value
Type |
---|
System.Boolean |
Graphics
Gets the System.Drawing.Graphics object associated with the event.
Declaration
public Graphics Graphics { get; }
Property Value
Type |
---|
System.Drawing.Graphics |
Handled
Gets or sets a value indicating whether the event was handled.
Declaration
public bool Handled { get; set; }
Property Value
Type |
---|
System.Boolean |
HotTracked
Gets or sets a value indicating whether the HotTracking is enabled.
Declaration
public bool HotTracked { get; set; }
Property Value
Type |
---|
System.Boolean |
Node
Gets the TreeNodeAdv which is associated with the action.
Declaration
public TreeNodeAdv Node { get; }
Property Value
Type |
---|
TreeNodeAdv |
Selected
Gets or sets a value indicating whether the node is selected.
Declaration
public bool Selected { get; set; }
Property Value
Type |
---|
System.Boolean |