Skip to content
ChartForgeX
Class

BlockLayoutItem

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
sealed

Describes one item in a deterministic block layout.

Inheritance

  • object
  • BlockLayoutItem

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 2

Constructors

public BlockLayoutItem(string id, string label, int columnSpan = 1, BlockLayoutShape shape = Rectangle, bool isSpace = false) #

Initializes a block layout item.

Parameters

id string required
label string required
columnSpan int = 1 optional
shape ChartForgeX.VisualBlocks.BlockLayoutShape = Rectangle optional
isSpace bool = false optional

Methods

public BlockLayoutItem Clone() #

Creates an independent item copy, including mutable caption and source metadata values.

Properties

public string Id { get; set; } #

Gets or sets the stable block id.

public string Label { get; set; } #

Gets or sets the display label.

public int ColumnSpan { get; set; } #

Gets or sets how many layout columns this item spans.

public BlockLayoutShape Shape { get; set; } #

Gets or sets the preferred item shape.

public bool IsSpace { get; } #

Gets whether this item is an invisible spacer.

public string? ParentId { get; set; } #

Gets or sets the containing composite ID. Null or empty places the item in the root grid.

public bool IsComposite { get; set; } #

Gets or sets whether this item contains its own source-ordered grid.

public int? Columns { get; set; } #

Gets or sets a composite's local fixed column count. Null inherits the enclosing grid; explicit auto takes precedence.

public bool AutoColumns { get; set; } #

Gets or sets whether this composite's children occupy one row in authored order.

public BlockLayoutArrowDirections ArrowDirections { get; set; } #

Gets or sets filled arrow directions. Used only by Arrow; the default is a right-pointing arrow.

public ChartColor? Fill { get; set; } #

Gets or sets the optional captured fill; null retains the theme palette.

public ChartStrokeStyle? Stroke { get; set; } #

Gets or sets immutable outline overrides.

public TextStyleOverride TextStyle { get; private set; } #

Gets measured font, color, case, language, variation and palette overrides. Decorated/scripted baselines are rejected before paint.

public Dictionary<string, string> Metadata { get; private set; } #

Gets retained source facts. Metadata is not interpreted as CSS or markup.