Skip to content
ChartForgeX
Class

ChartGridFluent

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Hand-written fluent methods of ChartGrid that do more than set one property.

Inheritance

  • object
  • ChartGridFluent

Methods

public static ChartGrid Accessibility(ChartGrid chartGrid, Action<VisualAccessibility> configure) #

Configures ChartGrid.Accessibility in place: Gets the text alternative for the complete chart comparison.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the value.

Returns

ChartGrid The same instance.
public static ChartGrid Columns(ChartGrid chartGrid, int value) #

Sets ChartGrid.Columns: Gets or sets the preferred number of columns on wide viewports.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value int required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                  // C# fluent
new global::ChartForgeX.Core.ChartGrid { Columns = value };    chartGrid.Columns(value);
public static ChartGrid Gap(ChartGrid chartGrid, int value) #

Sets ChartGrid.Gap: Gets or sets the gap between charts in pixels.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value int required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                              // C# fluent
new global::ChartForgeX.Core.ChartGrid { Gap = value };    chartGrid.Gap(value);
public static ChartGrid Padding(ChartGrid chartGrid, int value) #

Sets ChartGrid.Padding: Gets or sets the outer padding around exported grid content in pixels.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value int required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                  // C# fluent
new global::ChartForgeX.Core.ChartGrid { Padding = value };    chartGrid.Padding(value);
public static ChartGrid PanelFit(ChartGrid chartGrid, VisualPanelFit value) #

Sets ChartGrid.PanelFit: Gets or sets how charts fit inside fixed-size grid panels.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Primitives.VisualPanelFit required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::ChartForgeX.Core.ChartGrid { PanelFit = value };    chartGrid.PanelFit(value);
PanelSize 2 overloads
public static ChartGrid PanelSize(ChartGrid chartGrid, int width, int height) #

Sets a fixed panel size for composed SVG and PNG grid exports.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance to configure.
width int required
The panel width in pixels.
height int required
The panel height in pixels.

Returns

ChartGrid The current chart grid.
public static ChartGrid PanelSize(ChartGrid chartGrid, ChartSize? value) #

Sets ChartGrid.PanelSize: Gets or sets the optional fixed panel size used by composed SVG and PNG grid exports.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Primitives.ChartSize? required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ChartForgeX.Core.ChartGrid { PanelSize = value };    chartGrid.PanelSize(value);
public static ChartGrid PreserveEmptyColumns(ChartGrid chartGrid, bool value = true) #

Sets ChartGrid.PreserveEmptyColumns: Gets or sets whether composed SVG and PNG exports retain columns without charts.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartGrid { PreserveEmptyColumns = value };    chartGrid.PreserveEmptyColumns(value);
public static ChartGrid RasterScale(ChartGrid chartGrid, int value) #

Sets ChartGrid.RasterScale: Gets or sets the output pixel multiplier used by composed PNG grid exports.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value int required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::ChartForgeX.Core.ChartGrid { RasterScale = value };    chartGrid.RasterScale(value);
public static ChartGrid Subtitle(ChartGrid chartGrid, string value) #

Sets ChartGrid.Subtitle: Gets or sets the report subtitle.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value string required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::ChartForgeX.Core.ChartGrid { Subtitle = value };    chartGrid.Subtitle(value);
SubtitleStyle 2 overloads
public static ChartGrid SubtitleStyle(ChartGrid chartGrid, TextStyleOverride value) #

Sets ChartGrid.SubtitleStyle: Gets the text style used for the grid subtitle.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Typography.TextStyleOverride required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Core.ChartGrid { SubtitleStyle = value };    chartGrid.SubtitleStyle(value);
public static ChartGrid SubtitleStyle(ChartGrid chartGrid, Action<TextStyleOverride> configure) #

Configures a copy of ChartGrid.SubtitleStyle (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the text style used for the grid subtitle.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
configure System.Action<ChartForgeX.Typography.TextStyleOverride> required
Configures the copy.

Returns

ChartGrid The same instance.
public static ChartGrid SvgColorVariables(ChartGrid chartGrid, SvgColorVariables? value) #

Sets ChartGrid.SvgColorVariables: Gets or sets the CSS custom properties the grid SVG writes for mapped colours (see SvgColorVariables): the grid title, background, and every panel, including charts without their own variables. With ChartGrid.UsePanelThemes enabled, this mapping applies only to the outer frame; each panel retains its chart mapping or literal colours. PNG output always uses literal colours.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

ChartGrid The same instance.

Examples

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

Sets ChartGrid.Theme: Gets or sets the paired theme for the grid frame and, by default, every panel.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

ChartGrid The same instance.

Examples

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

Sets ChartGrid.ThemeMode: Gets or sets the explicit palette mode for the grid frame and shared panels.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ChartForgeX.Core.ChartGrid { ThemeMode = value };    chartGrid.ThemeMode(value);
public static ChartGrid Title(ChartGrid chartGrid, string value) #

Sets ChartGrid.Title: Gets or sets the report title.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value string required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                // C# fluent
new global::ChartForgeX.Core.ChartGrid { Title = value };    chartGrid.Title(value);
TitleStyle 2 overloads
public static ChartGrid TitleStyle(ChartGrid chartGrid, TextStyleOverride value) #

Sets ChartGrid.TitleStyle: Gets the text style used for the grid title.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value ChartForgeX.Typography.TextStyleOverride required
The value.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::ChartForgeX.Core.ChartGrid { TitleStyle = value };    chartGrid.TitleStyle(value);
public static ChartGrid TitleStyle(ChartGrid chartGrid, Action<TextStyleOverride> configure) #

Configures a copy of ChartGrid.TitleStyle (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the text style used for the grid title.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
configure System.Action<ChartForgeX.Typography.TextStyleOverride> required
Configures the copy.

Returns

ChartGrid The same instance.
public static ChartGrid UsePanelThemes(ChartGrid chartGrid, bool value = true) #

Sets ChartGrid.UsePanelThemes: Gets or sets whether each panel retains its chart's authored theme, mode and font request.

Parameters

chartGrid ChartForgeX.Core.ChartGrid required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartGrid The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Core.ChartGrid { UsePanelThemes = value };    chartGrid.UsePanelThemes(value);