# TreeViewBlockFluent

The fluent methods of TreeViewBlock, generated from its public properties: A property-named method sets a property and a singular-named method adds…

 Class  

`ChartForgeX.VisualBlocks`

**Namespace**

`ChartForgeX.VisualBlocks`

**Assembly**

`ChartForgeX`

**Modifiers**

static

The fluent methods of [TreeViewBlock](/api/chartforgex-visualblocks-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

 Filter members   

    Show inherited   

 

## Methods

 `public static TreeViewBlock Accessibility(TreeViewBlock treeViewBlock, Action<VisualAccessibility> configure)` [#](#method-accessibility-chartforgex-visualblocks-treeviewblock-action-chartforgex-accessibility-visualaccessibility) 

Configures [VisualBlockOptions.Accessibility](/api/chartforgex-visualblocks-visualblockoptions/) 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)` [#](#method-hostownsframe-chartforgex-visualblocks-treeviewblock-boolean) 

Sets [VisualBlockOptions.HostOwnsFrame](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-options-chartforgex-visualblocks-treeviewblock-action-chartforgex-visualblocks-visualblockoptions) 

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)` [#](#method-padding-chartforgex-visualblocks-treeviewblock-chartforgex-primitives-chartpadding) 

Sets [VisualBlockOptions.Padding](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-rasterscale-chartforgex-visualblocks-treeviewblock-int32) 

Sets [VisualBlockOptions.RasterScale](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-rowindent-chartforgex-visualblocks-treeviewblock-double) 

Sets [TreeViewBlock.RowIndent](/api/chartforgex-visualblocks-treeviewblock/): 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

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { RowIndent = value };    treeViewBlock.RowIndent(value);
```

 `public static TreeViewBlock RowPadding(TreeViewBlock treeViewBlock, double value)` [#](#method-rowpadding-chartforgex-visualblocks-treeviewblock-double) 

Sets [TreeViewBlock.RowPadding](/api/chartforgex-visualblocks-treeviewblock/): 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

```csharp
// 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)` [#](#method-showcard-chartforgex-visualblocks-treeviewblock-boolean) 

Sets [VisualBlockOptions.ShowCard](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-showicons-chartforgex-visualblocks-treeviewblock-boolean) 

Sets [TreeViewBlock.ShowIcons](/api/chartforgex-visualblocks-treeviewblock/): 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

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { ShowIcons = value };    treeViewBlock.ShowIcons(value);
```

 `public static TreeViewBlock Size(TreeViewBlock treeViewBlock, ChartSize value)` [#](#method-size-chartforgex-visualblocks-treeviewblock-chartforgex-primitives-chartsize) 

Sets [VisualBlockOptions.Size](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-subtitle-chartforgex-visualblocks-treeviewblock-string) 

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

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualBlocks.TreeViewBlock { Subtitle = value };    treeViewBlock.Subtitle(value);
```

 `public static TreeViewBlock SvgColorVariables(TreeViewBlock treeViewBlock, SvgColorVariables? value)` [#](#method-svgcolorvariables-chartforgex-visualblocks-treeviewblock-chartforgex-themes-svgcolorvariables) 

Sets [VisualBlockOptions.SvgColorVariables](/api/chartforgex-visualblocks-visualblockoptions/): Gets or sets the CSS custom properties SVG output writes for theme colours, matched by colour value (see [SvgColorVariables.Apply](/api/chartforgex-themes-svgcolorvariables/)), for example [SvgColorVariables.SharedRoles](/api/chartforgex-themes-svgcolorvariables/) 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

```csharp
// 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)` [#](#method-theme-chartforgex-visualblocks-treeviewblock-chartforgex-themes-visualtheme) 

Sets [VisualBlockOptions.Theme](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-thememode-chartforgex-visualblocks-treeviewblock-chartforgex-thememode) 

Sets [VisualBlockOptions.ThemeMode](/api/chartforgex-visualblocks-visualblockoptions/): 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

```csharp
// 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)` [#](#method-title-chartforgex-visualblocks-treeviewblock-string) 

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

```csharp
// 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)` [#](#method-transparentbackground-chartforgex-visualblocks-treeviewblock-boolean) 

Sets [VisualBlockOptions.TransparentBackground](/api/chartforgex-visualblocks-visualblockoptions/): 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

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

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:D066FC31BF8099135A7EB7F47E99B2F36C297F81F0D3F1AD227B174D6BEF3BE2 -->
