API Reference
Class
VisualBlock`1
Base class for fluent visual block models.
Inheritance
- Object
- VisualBlock`1
Type Parameters
- TSelf
- The concrete visual block type.
Methods
public virtual String RenderSvg(String idScope) #Returns:
StringRenders the producer-owned static SVG with an embedding identity scope.
Parameters
- idScope System.String
public TSelf WithCard(Boolean enabled = true) #Returns:
TSelfSets whether the outer card surface should be rendered.
Parameters
- enabled System.Boolean = true
public TSelf WithHostFrame(Boolean hostOwnsFrame = true) #Returns:
TSelfLets the embedding host own the surface and removes outer padding.
Parameters
- hostOwnsFrame System.Boolean = true
WithPadding 2 overloads
public TSelf WithPadding(Double padding) #Returns:
TSelfSets uniform inner content padding.
Parameters
- padding System.Double
public TSelf WithPadding(Double left, Double top, Double right, Double bottom) #Returns:
TSelfSets the inner content padding.
Parameters
- left System.Double
- top System.Double
- right System.Double
- bottom System.Double
public TSelf WithPngOutputScale(Int32 scale) #Returns:
TSelfSets the output pixel multiplier used by PNG exports.
Parameters
- scale System.Int32
public TSelf WithSize(Int32 width, Int32 height) #Returns:
TSelfSets the rendered block size.
Parameters
- width System.Int32
- height System.Int32
public TSelf WithSubtitle(String subtitle) #Returns:
TSelfSets the block subtitle.
Parameters
- subtitle System.String
public TSelf WithTheme(ChartTheme theme) #Returns:
TSelfSets the visual theme.
Parameters
- theme ChartForgeX.Themes.ChartTheme
public TSelf WithTitle(String title) #Returns:
TSelfSets the block title.
Parameters
- title System.String
public TSelf WithTransparentBackground(Boolean enabled = true) #Returns:
TSelfSets whether the full background should stay transparent.
Parameters
- enabled System.Boolean = true
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?