TreeViewBlock
ChartForgeX.VisualBlocks
A reusable static directory tree with source-ordered rows and shared SVG/native PNG geometry.
Inheritance
- VisualBlock<TreeViewBlock>
- TreeViewBlock
Remarks
Rows use contiguous preorder and parent-before-child IDs. Native limits are 10000 rows, 128 levels and an 8192-pixel frame per axis. Call WithNaturalSize after changing data, width, typography or padding. An undersized explicit frame rejects rather than reducing text to unreadable sizes.
Usage
Explore 19 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 19
- Extension method MermaidTreeViewDocument.ToTreeViewBlock
- Method MermaidTreeViewRendering.ToTreeViewBlock
- Extension method VisualArtifactInterchangeEnvelope.ToTreeViewBlock
- Method VisualArtifactInterchangeMapping.ToTreeViewBlock
- Method TreeViewBlock.AddItem
- Method TreeViewBlock.ConfigureTheme
- Method TreeViewBlock.Create
- Method TreeViewBlock.WithCard
- Method TreeViewBlock.WithHostFrame
- Method TreeViewBlock.WithNaturalSize
- Method TreeViewBlock.WithPadding
- Method TreeViewBlock.WithPngOutputScale
- Method TreeViewBlock.WithSize
- Method TreeViewBlock.WithSubtitle
- Method TreeViewBlock.WithSvgColorVariables
- Method TreeViewBlock.WithTheme
- Method TreeViewBlock.WithThemeMode
- Method TreeViewBlock.WithTitle
- Method TreeViewBlock.WithTransparentBackground
Constructors
Methods
public TreeViewBlock AddItem(TreeViewItem item) #Adds one complete immutable row.
Parameters
- item ChartForgeX.VisualBlocks.TreeViewItem
Returns
TreeViewBlockpublic TreeViewBlock AddItem(string id, string label, string? parentId = null, string? description = null) #Adds a row with automatic directory and icon policies.
Parameters
- id string
- label string
- parentId string? = null
- description string? = null
Returns
TreeViewBlockpublic ChartSize MeasureNaturalSize(int width = 520, int minimumHeight = 0) #Measures a complete fixed-width frame with bounded natural height.
Parameters
- width int = 520
- minimumHeight int = 0
Returns
ChartSizepublic TreeViewBlock WithNaturalSize(int width = 520, int minimumHeight = 0) #Captures the measured fixed-width natural frame without silently dropping rows.
Parameters
- width int = 520
- minimumHeight int = 0
Returns
TreeViewBlockInherited Methods
public TreeViewBlock ConfigureTheme(Action<VisualThemeBuilder> configure) #Parameters
- configure Action<VisualThemeBuilder>
Returns
TreeViewBlockpublic virtual RgbaImage RenderRgba() #Returns
RgbaImagepublic virtual string RenderSvg(string idScope) #Parameters
- idScope string
Returns
stringpublic TreeViewBlock WithCard(bool enabled = true) #Parameters
- enabled bool = true
Returns
TreeViewBlockpublic TreeViewBlock WithHostFrame(bool hostOwnsFrame = true) #Parameters
- hostOwnsFrame bool = true
Returns
TreeViewBlockpublic TreeViewBlock WithPadding(double padding) #Parameters
- padding double
Returns
TreeViewBlockpublic TreeViewBlock WithPadding(double left, double top, double right, double bottom) #Parameters
- left double
- top double
- right double
- bottom double
Returns
TreeViewBlockpublic TreeViewBlock WithPngOutputScale(int scale) #Parameters
- scale int
Returns
TreeViewBlockpublic TreeViewBlock WithSize(int width, int height) #Parameters
- width int
- height int
Returns
TreeViewBlockpublic TreeViewBlock WithSubtitle(string subtitle) #Parameters
- subtitle string
Returns
TreeViewBlockpublic TreeViewBlock WithSvgColorVariables(SvgColorVariables? variables) #Parameters
- variables SvgColorVariables?
Returns
TreeViewBlockpublic TreeViewBlock WithTheme(VisualTheme theme, VisualThemeMode? mode = null) #Parameters
- theme VisualTheme
- mode VisualThemeMode? = null
Returns
TreeViewBlockpublic TreeViewBlock WithThemeMode(VisualThemeMode mode) #Parameters
- mode VisualThemeMode
Returns
TreeViewBlockpublic TreeViewBlock WithTitle(string title) #Parameters
- title string
Returns
TreeViewBlockpublic TreeViewBlock WithTransparentBackground(bool enabled = true) #Parameters
- enabled bool = true
Returns
TreeViewBlockProperties
public IReadOnlyList<TreeViewItem> Items { get; } #Gets immutable rows in authored preorder.
public bool ShowIcons { get; set; } #Gets or sets whether Auto icons display native files and folders. Explicit icons are independent.
public double RowIndent { get; set; } #Gets or sets indentation per level in logical pixels, from 4 through 256.
public double RowPadding { get; set; } #Gets or sets vertical padding on each side of a row, from zero through 64 logical pixels.
Inherited Properties
public string Title { get; set; } #public string Subtitle { get; set; } #public VisualBlockOptions Options { get; } #