Skip to content
ChartForgeX
Class

RailroadDiagramBlockFluent

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
static

The fluent methods of RailroadDiagramBlock, 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
  • RailroadDiagramBlockFluent

Methods

public static RailroadDiagramBlock Accessibility(RailroadDiagramBlock railroadDiagramBlock, Action<VisualAccessibility> configure) #

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

Parameters

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

Returns

RailroadDiagramBlock The same instance.
public static RailroadDiagramBlock HostOwnsFrame(RailroadDiagramBlock railroadDiagramBlock, bool value = true) #

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions> required
Configures the value.

Returns

RailroadDiagramBlock The same instance.
public static RailroadDiagramBlock Padding(RailroadDiagramBlock railroadDiagramBlock, ChartPadding value) #

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.Primitives.ChartPadding required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value int required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                               // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.RailroadDiagramBlock>)railroadDiagramBlock).Options.RasterScale = value;    railroadDiagramBlock.RasterScale(value);
public static RailroadDiagramBlock RuleComparison(RailroadDiagramBlock railroadDiagramBlock, RailroadRuleComparison value) #

Sets RailroadDiagramBlock.RuleComparison: Gets or sets rule-identity comparison without changing displayed rule IDs.

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.VisualBlocks.RailroadRuleComparison required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RailroadDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                            // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.RailroadDiagramBlock>)railroadDiagramBlock).Options.ShowCard = value;    railroadDiagramBlock.ShowCard(value);
public static RailroadDiagramBlock Size(RailroadDiagramBlock railroadDiagramBlock, ChartSize value) #

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.Primitives.ChartSize required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value string required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value string required
The value.

Returns

RailroadDiagramBlock The same instance.

Examples

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

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

Parameters

railroadDiagramBlock ChartForgeX.VisualBlocks.RailroadDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RailroadDiagramBlock The same instance.

Examples

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