Skip to content
ChartForgeX
Class

VisualBlock<TSelf>

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
abstract
Attributes
Fluent

Base class for fluent visual block models.

Inheritance

  • object
  • VisualBlock<TSelf>

Type Parameters

TSelf
The concrete visual block type.

Methods

Padding 2 overloads
public TSelf Padding(double padding) #

Sets uniform inner content padding.

Parameters

padding double required

Returns

TSelf
public TSelf Padding(double left, double top, double right, double bottom) #

Sets the inner content padding.

Parameters

left double required
top double required
right double required
bottom double required

Returns

TSelf
public virtual RgbaImage RenderRgba() #

Renders the producer-owned static pixels.

Returns

RgbaImage
public virtual string RenderSvg(string idScope) #

Renders the producer-owned static SVG with an embedding identity scope.

Parameters

idScope string required

Returns

string
public TSelf Size(int width, int height) #

Sets the rendered block size.

Parameters

width int required
height int required

Returns

TSelf
public TSelf Theme(Action<VisualThemeBuilder> configure) #

Atomically replaces the shared theme using an isolated configuration builder.

Parameters

configure System.Action<ChartForgeX.Themes.VisualThemeBuilder> required

Returns

TSelf

Properties

public string Title { get; set; } #

Gets or sets the block title.

public string Subtitle { get; set; } #

Gets or sets the block subtitle.

public VisualBlockOptions Options { get; } #
FluentInline

Gets shared rendering options.

public virtual string AccessibleName { get; } #

Gets a concise accessibility label.