Class TreeNodeAdvPaintEventArgs
Represents an event args that are passed in the DrawNode event of the TreeViewAdv control. Contains information about the appearance of the node 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 TreeNodeAdvPaintEventArgs : EventArgs
Constructors
TreeNodeAdvPaintEventArgs(TreeNodeAdv, Graphics, Rectangle, Point, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Color)
Initializes a new instance of the TreeNodeAdvPaintEventArgs class.
Declaration
public TreeNodeAdvPaintEventArgs(TreeNodeAdv node, Graphics g, Rectangle bounds, Point textLocation, int level, int indent, bool selected, bool active, bool fullRowSelect, bool hotTracked, Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
TreeNodeAdv | node | The node associated with event. |
System.Drawing.Graphics | g | The instance of Graphics class. |
System.Drawing.Rectangle | bounds | Bounds of the Node. |
System.Drawing.Point | textLocation | Location of Text. |
System.Int32 | level | The Level of Node. |
System.Int32 | indent | The Indent of Node. |
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. |
System.Drawing.Color | foreColor | The foreground color of node. |
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 |
ForeColor
Gets or sets foreground color.
Declaration
public Color ForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
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 |
HandledCheckBox
Gets or sets a value indicating whether painting CheckBox was handled.
Declaration
public bool HandledCheckBox { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledLeftImageList
Gets or sets a value indicating whether painting images in left side was handled.
Declaration
public bool HandledLeftImageList { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledOptionButton
Gets or sets a value indicating whether painting Option button was handled.
Declaration
public bool HandledOptionButton { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledPlusMinus
Gets or sets a value indicating whether painting PlusMinus button was handled.
Declaration
public bool HandledPlusMinus { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledRightImageList
Gets or sets a value indicating whether painting images in right side was handled.
Declaration
public bool HandledRightImageList { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledStateImageList
Gets or sets a value indicating whether painting state image was handled.
Declaration
public bool HandledStateImageList { get; set; }
Property Value
Type |
---|
System.Boolean |
HandledText
Gets or sets a value indicating whether painting text was handled.
Declaration
public bool HandledText { 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 |
Indent
Gets the indent of node.
Declaration
public int Indent { get; }
Property Value
Type |
---|
System.Int32 |
Remarks
An instance of System.Int32
Level
Gets the level of node.
Declaration
public int Level { get; }
Property Value
Type |
---|
System.Int32 |
Remarks
An instance of System.Int32
Node
Gets the TreeNodeAdv which is associated with the action.
Declaration
public TreeNodeAdv Node { get; }
Property Value
Type |
---|
TreeNodeAdv |
RightMargin
Gets or sets the RightMargin.
Declaration
public int RightMargin { get; set; }
Property Value
Type |
---|
System.Int32 |
Selected
Gets or sets a value indicating whether the node is selected.
Declaration
public bool Selected { get; set; }
Property Value
Type |
---|
System.Boolean |
TextLocation
Gets the location of text as System.Drawing.Point.
Declaration
public Point TextLocation { get; }
Property Value
Type |
---|
System.Drawing.Point |