Skip to content
ChartForgeX
Class

VisualLayoutOptions

ChartForgeX.Rendering

Namespace
ChartForgeX.Rendering
Assembly
ChartForgeX
Modifiers
sealed

The resolved viewport and outer padding used by every prepared visual.

Inheritance

  • object
  • VisualLayoutOptions

Usage

Explore 2 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 1

Accepted by parameters 1

Constructors

VisualLayoutOptions 2 overloads
public VisualLayoutOptions(VisualSize size, double padding = 24, bool fitHeightToContent = false) #

Creates a viewport. Hosts implement fit sizing by supplying their measured viewport, or let row charts trim unused height.

Parameters

size ChartForgeX.Rendering.VisualSize required
padding double = 24 optional
fitHeightToContent bool = false optional
public VisualLayoutOptions(VisualSize size, ChartPadding padding, bool fitHeightToContent = false) #

Creates a fixed viewport with independently configured outer edge insets.

Parameters

size ChartForgeX.Rendering.VisualSize required
padding ChartForgeX.Primitives.ChartPadding required
fitHeightToContent bool = false optional

Properties

public VisualSize Size { get; } #

Gets the resolved logical size.

public double Padding { get; } #

Gets the smallest outer edge inset. Uniform layouts return their configured scalar padding.

public ChartPadding PaddingEdges { get; } #

Gets the outer edge insets in logical units.

public bool FitHeightToContent { get; } #

Gets whether row charts (schedules, progress bars, horizontal bullets, pictorial rows and horizontal linear gauges) may trim unused height within VisualLayoutOptions.Size. False keeps a fixed host viewport with top-aligned rows.