Skip to content
ChartForgeX
Class

TreeViewBlockFluent

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
static

The fluent methods of TreeViewBlock, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • TreeViewBlockFluent

Methods

public static TreeViewBlock Accessibility(TreeViewBlock treeViewBlock, Action<VisualAccessibility> configure) #

Configures VisualBlockOptions.Accessibility in place: Gets the text alternative, language, and decorative metadata used by static exports.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the value.

Returns

TreeViewBlock The same instance.
public static TreeViewBlock HostOwnsFrame(TreeViewBlock treeViewBlock, bool value = true) #

Sets VisualBlockOptions.HostOwnsFrame: Gets or sets whether the host owns the frame, removing the surface and outer padding.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                                   // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.HostOwnsFrame = value;    treeViewBlock.HostOwnsFrame(value);
public static TreeViewBlock Options(TreeViewBlock treeViewBlock, Action<VisualBlockOptions> configure) #

Configures VisualBlock<TreeViewBlock>.Options in place: Gets shared rendering options.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions> required
Configures the value.

Returns

TreeViewBlock The same instance.
public static TreeViewBlock Padding(TreeViewBlock treeViewBlock, ChartPadding value) #

Sets VisualBlockOptions.Padding: Gets or sets the inner content padding.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value ChartForgeX.Primitives.ChartPadding required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                             // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.Padding = value;    treeViewBlock.Padding(value);
public static TreeViewBlock RasterScale(TreeViewBlock treeViewBlock, int value) #

Sets VisualBlockOptions.RasterScale: Gets or sets the output pixel multiplier used by PNG exports.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value int required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                                 // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.RasterScale = value;    treeViewBlock.RasterScale(value);
public static TreeViewBlock RowIndent(TreeViewBlock treeViewBlock, double value) #

Sets TreeViewBlock.RowIndent: Gets or sets indentation per level in logical pixels, from 4 through 256.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value double required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { RowIndent = value };    treeViewBlock.RowIndent(value);
public static TreeViewBlock RowPadding(TreeViewBlock treeViewBlock, double value) #

Sets TreeViewBlock.RowPadding: Gets or sets vertical padding on each side of a row, from zero through 64 logical pixels.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value double required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { RowPadding = value };    treeViewBlock.RowPadding(value);
public static TreeViewBlock ShowCard(TreeViewBlock treeViewBlock, bool value = true) #

Sets VisualBlockOptions.ShowCard: Gets or sets whether the outer card surface should be rendered.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                              // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.ShowCard = value;    treeViewBlock.ShowCard(value);
public static TreeViewBlock ShowIcons(TreeViewBlock treeViewBlock, bool value = true) #

Sets TreeViewBlock.ShowIcons: Gets or sets whether Auto icons display native files and folders. Explicit icons are independent.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { ShowIcons = value };    treeViewBlock.ShowIcons(value);
public static TreeViewBlock Size(TreeViewBlock treeViewBlock, ChartSize value) #

Sets VisualBlockOptions.Size: Gets or sets the rendered block size in pixels.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value ChartForgeX.Primitives.ChartSize required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                          // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.Size = value;    treeViewBlock.Size(value);
public static TreeViewBlock Subtitle(TreeViewBlock treeViewBlock, string value) #

Sets VisualBlock<TreeViewBlock>.Subtitle: Gets or sets the block subtitle.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value string required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { Subtitle = value };    treeViewBlock.Subtitle(value);
public static TreeViewBlock SvgColorVariables(TreeViewBlock treeViewBlock, SvgColorVariables? value) #

Sets VisualBlockOptions.SvgColorVariables: Gets or sets the CSS custom properties SVG output writes for theme colours, matched by colour value (see SvgColorVariables.Apply), for example SvgColorVariables.SharedRoles of this theme and mode. Null (the default) writes literal colours; PNG output always does.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                                       // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.SvgColorVariables = value;    treeViewBlock.SvgColorVariables(value);
public static TreeViewBlock Theme(TreeViewBlock treeViewBlock, VisualTheme value) #

Sets VisualBlockOptions.Theme: Gets or sets the visual theme used by renderers.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                           // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.Theme = value;    treeViewBlock.Theme(value);
public static TreeViewBlock ThemeMode(TreeViewBlock treeViewBlock, ThemeMode value) #

Sets VisualBlockOptions.ThemeMode: Gets or sets the explicit mode of the shared theme.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                               // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.ThemeMode = value;    treeViewBlock.ThemeMode(value);
public static TreeViewBlock Title(TreeViewBlock treeViewBlock, string value) #

Sets VisualBlock<TreeViewBlock>.Title: Gets or sets the block title.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value string required
The value.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { Title = value };    treeViewBlock.Title(value);
public static TreeViewBlock TransparentBackground(TreeViewBlock treeViewBlock, bool value = true) #

Sets VisualBlockOptions.TransparentBackground: Gets or sets whether the full background should stay transparent.

Parameters

treeViewBlock ChartForgeX.VisualBlocks.TreeViewBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TreeViewBlock The same instance.

Examples

// C# initializer or property                                                                                                                           // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.TreeViewBlock>)treeViewBlock).Options.TransparentBackground = value;    treeViewBlock.TransparentBackground(value);