System.Windows.Forms
2.0.0.0
System.EventArgs
Use the event to customize the appearance of nodes in a control using owner drawing.
The event is raised by a control when its property is set to or and a node is displayed or updated. The passed to the event handler contains information about the node to draw as well as providing methods to help you draw the node.
Use the or properties to retrieve information about the node to draw. Use the property to do the actual drawing within the area specified by the property. To make the operating system draw a node that does not need to be owner drawn, set the property to true.
When the property is set to , the area indicated by the property includes the label portion of the node only. When the property is set to , the area includes the entire node, including the area typically used for icons, checkboxes, plus and minus signs, and lines connecting the nodes.
Provides data for the event.
Constructor
To be added.
Initializes a new instance of the class.
The surface on which to draw.
The to draw.
The within which to draw.
A bitwise combination of the values indicating the current state of the to draw.
2.0.0.0
Property
System.Drawing.Rectangle
To be added.
The location specified by this property is relative to the upper-left corner of the control.
When the property is set to , the area specified by the property is the region in which a node can be clicked to select it. If you draw outside this hit test region, you should provide your own code for selecting a node when its visible area is clicked. You may also want to provide your own hit test code when the property is set to . In this mode, the property encompasses the whole node across the entire width of the control, rather than the just hit test region.
Gets the size and location of the to draw.
2.0.0.0
Property
System.Boolean
To be added.
Set this property to true for nodes that you do not want to customize when you handle the event. For example, this is useful when you want to customize only nodes that are in a specific state.
Gets or sets a value indicating whether the should be drawn by the operating system rather than being owner drawn.
2.0.0.0
Property
System.Drawing.Graphics
To be added.
The class provides properties and methods useful for drawing on the display device.
Gets the object used to draw the .
2.0.0.0
Property
System.Windows.Forms.TreeNode
To be added.
Use this property to access the object to draw. This is useful when the property does not provide adequate information to meet your needs. The property provides only basic state information that you can use, for example, to determine whether a node is selected, checked, or focused. The property, on the other hand, allows you to access all members of the object. You must access the node directly, for example, when you want to determine its expansion state.
Gets the to draw.
2.0.0.0
Property
System.Windows.Forms.TreeNodeStates
To be added.
Use this property to check whether the object to draw is in a particular state. This property provides only basic state information about the node. You can use this property, for example, to determine whether a node is selected, checked, or focused. If you need to know more, retrieve the node through the property. For example, to determine whether the node is expanded, you must retrieve the node and check the property.
Gets the current state of the to draw.
2.0.0.0