Skip to content
ChartForgeX
Class

TreeViewItem

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
sealed

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.

Accepted by parameters 1

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 required
label string required
parentId string? = null optional
description string? = null optional
kind ChartForgeX.VisualBlocks.TreeViewItemKind = Auto optional
icon ChartForgeX.VisualBlocks.TreeViewIcon = Auto optional
highlighted bool = false optional
iconReference string? = null optional
classes System.Collections.Generic.IEnumerable<string>? = null optional

Properties

public string Id { get; } #

Gets the stable row identity.

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 TreeViewItemKind Kind { get; } #

Gets the authored file/directory meaning.

public TreeViewIcon Icon { get; } #

Gets the native icon policy.

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.