Skip to content
ChartForgeX
Class

VisualBlockOptions

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
sealed

Shared renderer-independent options for visual blocks.

Inheritance

  • object
  • VisualBlockOptions

Usage

Explore 109 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 45

Accepted by parameters 64

Constructors

public VisualBlockOptions() #

Properties

public VisualAccessibility Accessibility { get; } #

Gets the text alternative, language, and decorative metadata used by static exports.

public ChartSize Size { get; set; } #

Gets or sets the rendered block size in pixels.

public ChartPadding Padding { get; set; } #

Gets or sets the inner content padding.

public VisualTheme Theme { get; set; } #

Gets or sets the visual theme used by renderers.

public ThemeMode ThemeMode { get; set; } #

Gets or sets the explicit mode of the shared theme.

public SvgColorVariables? SvgColorVariables { get; set; } #

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.

public bool TransparentBackground { get; set; } #

Gets or sets whether the full background should stay transparent.

public bool ShowCard { get; set; } #

Gets or sets whether the outer card surface should be rendered.

public bool HostOwnsFrame { get; set; } #

Gets or sets whether the host owns the frame, removing the surface and outer padding.

public int RasterScale { get; set; } #

Gets or sets the output pixel multiplier used by PNG exports.

Extension Methods

public static VisualBlockOptions Accessibility(VisualBlockOptions visualBlockOptions, Action<VisualAccessibility> configure) #

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

Parameters

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

Returns

VisualBlockOptions The same instance.
public static VisualBlockOptions HostOwnsFrame(VisualBlockOptions visualBlockOptions, bool value = true) #

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                         // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { HostOwnsFrame = value };    visualBlockOptions.HostOwnsFrame(value);
public static VisualBlockOptions Padding(VisualBlockOptions visualBlockOptions, ChartPadding value) #

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value ChartForgeX.Primitives.ChartPadding required
The value.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { Padding = value };    visualBlockOptions.Padding(value);
public static VisualBlockOptions RasterScale(VisualBlockOptions visualBlockOptions, int value) #

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value int required
The value.

Returns

VisualBlockOptions The same instance.

Examples

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

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VisualBlockOptions The same instance.

Examples

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

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value ChartForgeX.Primitives.ChartSize required
The value.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { Size = value };    visualBlockOptions.Size(value);
public static VisualBlockOptions SvgColorVariables(VisualBlockOptions visualBlockOptions, 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

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { SvgColorVariables = value };    visualBlockOptions.SvgColorVariables(value);
public static VisualBlockOptions Theme(VisualBlockOptions visualBlockOptions, VisualTheme value) #

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { Theme = value };    visualBlockOptions.Theme(value);
public static VisualBlockOptions ThemeMode(VisualBlockOptions visualBlockOptions, ThemeMode value) #

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

VisualBlockOptions The same instance.

Examples

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

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

Parameters

visualBlockOptions ChartForgeX.VisualBlocks.VisualBlockOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VisualBlockOptions The same instance.

Examples

// C# initializer or property                                                                 // C# fluent
new global::ChartForgeX.VisualBlocks.VisualBlockOptions { TransparentBackground = value };    visualBlockOptions.TransparentBackground(value);