OrganizedTreeNode
A custom class that represents a Node.
public class OrganizedTreeNode
Members at a glance
OrganizedTreeNode | Initializes a new instance of the OrganizedTreeNode class. |
OrganizedTreeNode | Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card. |
OrganizedTreeNode | Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card in an accent colour. |
OrganizedTreeNode | Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card with a picture. |
AccentBrush | Gets or sets the brush of the card's accent stripe and avatar; when null , NodeCardAccentBrush is used. |
Children | Gets or sets the children. |
Data | Gets or sets any application data carried by the node. |
Image | Gets or sets the picture in the card's avatar circle; when null , the circle shows Initials. |
Initials | Gets or sets the letters in the card's avatar circle; when null , the first letters of the first two words of Title are used. |
IsInCollapsedState | Gets or sets a value indicating whether this node is in collapsed state. |
NodeElement | Gets or sets the element drawn for the node. |
Parent | Gets the node's parent, as of the last time the tree was rendered; null for a root node. |
Subtitle | Gets or sets the second line of the card drawn for a node that has no NodeElement of its own. |
Title | Gets or sets the title of the card drawn for a node that has no NodeElement of its own. |
Constructors
OrganizedTreeNode
Initializes a new instance of the OrganizedTreeNode class.
- nodeElement
- The node element.
- sizeOfTheNodeElement
- The size of the node element.
OrganizedTreeNode
Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card.
- title
- The card's title, typically a name.
- subtitle
- The card's second line, typically a role; may be null .
OrganizedTreeNode
Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card in an accent colour.
- title
- The card's title, typically a name.
- subtitle
- The card's second line, typically a role; may be null .
- accentColour
- The colour of the card's accent stripe and avatar.
OrganizedTreeNode
Initializes a new instance of the OrganizedTreeNode class that the tree draws as a card with a picture.
- title
- The card's title, typically a name.
- subtitle
- The card's second line, typically a role; may be null .
- image
- The picture shown in the card's avatar circle.
- accentColour
- The colour of the card's accent stripe and avatar ring.
Properties
AccentBrush
Gets or sets the brush of the card's accent stripe and avatar; when null , NodeCardAccentBrush is used.
Children
Gets or sets the children.
Value. The children.
Data
Gets or sets any application data carried by the node.
Image
Gets or sets the picture in the card's avatar circle; when null , the circle shows Initials.
Initials
Gets or sets the letters in the card's avatar circle; when null , the first letters of the first two words of Title are used.
IsInCollapsedState
Gets or sets a value indicating whether this node is in collapsed state.
Value. true if this node is in collapsed state; otherwise, false .
NodeElement
Gets or sets the element drawn for the node.
Value. The node element; when null , the tree draws a card from Title, Subtitle, Image and AccentBrush.
Parent
Gets the node's parent, as of the last time the tree was rendered; null for a root node.
Subtitle
Gets or sets the second line of the card drawn for a node that has no NodeElement of its own.
Title
Gets or sets the title of the card drawn for a node that has no NodeElement of its own.
RenderTree after changing the card's content.