TreeViewItem
ChartForgeX.VisualBlocks
An immutable row with stable identity, parent identity and complete authored text.
Inheritance
- object
- TreeViewItem
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property VisualArtifactInterchangeTreeViewArtifact.Items
- Property TreeViewBlock.Items
Accepted by parameters 1
- Method TreeViewBlock.AddItem
Constructors
public TreeViewItem(string id, string label, string? parentId = null, string? description = null, TreeViewItemKind kind = Auto, TreeViewIcon icon = Auto, bool highlighted = false, string? iconReference = null, IEnumerable<string>? classes = null) #Initializes a row. Parent rows precede their descendants in contiguous preorder. IDs contain at most 4096 characters. Class names and icon references are inert metadata; only Highlighted and the built-in Icon affect paint.
Parameters
- id string
- label string
- parentId string? = null
- description string? = null
- kind ChartForgeX.VisualBlocks.TreeViewItemKind = Auto
- icon ChartForgeX.VisualBlocks.TreeViewIcon = Auto
- highlighted bool = false
- iconReference string? = null
- classes System.Collections.Generic.IEnumerable<string>? = null
Inherited Methods
Properties
public string Label { get; } #Gets the complete source label, even when its ink is shortened.
public string? ParentId { get; } #Gets the parent identity, or null for a root row.
public string Description { get; } #Gets the complete description, painted beside or below the label.
public bool Highlighted { get; } #Gets whether the row has an explicit theme-aware highlight.
public string? IconReference { get; } #Gets an inert original icon name, without resolving or fetching assets.
public IReadOnlyList<string> Classes { get; } #Gets a copied, read-only list of inert source class names.