Search
TreeViewItem Members
Constructors Properties Methods
 


Represents a constituent item of the hierarchy displayed inside a TreeViewNode.

The following tables list the members exposed by the TreeViewItem type.

 Public Constructors

  Name Description

TreeViewItem

Initializes a new instance of the TreeViewItem class.

 Public Properties

  Name Description

brush

Gets or sets the brush used to paint item's background.

children

Gets a list of this item's children.

expanded

Gets or sets a value indicating whether this item is expanded to show its children.

font

Gets or sets the font used to render item's text.

height

Gets or sets the height of this item.

image

Gets or sets the image displayed by this item.

imageContent

Gets or sets a Base64-encoded image to display inside this item.

imageLocation

Gets or sets URL of the image to display inside this item.

imagePadding

Gets or sets the padding distance between item's borders and image.

parent

Gets the parent item of this item.

tag

Gets or sets custom data tag associated with this item.

text

Gets or sets the text label displayed by this item.

textColor

Gets or sets the item's text color.

tooltip

Gets or sets the tooltip text that should be displayed when the mouse hovers over this item.

 Public Methods

  Name Description

loadFromXml

Loads the item's content from an XML element.

saveToXml

Saves the item's content into an XML element.

 See Also