# BlockLayoutItem

Describes one item in a deterministic block layout.

 Class  

`ChartForgeX.VisualBlocks`

**Namespace**

`ChartForgeX.VisualBlocks`

**Assembly**

`ChartForgeX`

**Source**

[BlockLayoutBlock.Hierarchy.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L50)

**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

- Property [BlockLayoutBlock.Items](/api/chartforgex-visualblocks-blocklayoutblock/#property-items)
- Method [BlockLayoutItem.Clone](/api/chartforgex-visualblocks-blocklayoutitem/#method-clone)

 Filter members   

    Show inherited   

 

## Constructors

 `public BlockLayoutItem(string id, string label, int columnSpan = 1, BlockLayoutShape shape = Rectangle, bool isSpace = false)` [#](#constructor-ctor-string-string-int32-chartforgex-visualblocks-blocklayoutshape-boolean) 

[BlockLayoutBlock.Hierarchy.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L50)

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()` [#](#method-clone) 

[BlockLayoutBlock.Hierarchy.cs:61](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L61)

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

Returns

 `BlockLayoutItem` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Id { get; set; }` [#](#property-id) 

[BlockLayoutBlock.cs:77](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.cs#L77)

Gets or sets the stable block id.

 `public string Label { get; set; }` [#](#property-label) 

[BlockLayoutBlock.cs:80](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.cs#L80)

Gets or sets the display label.

 `public int ColumnSpan { get; set; }` [#](#property-columnspan) 

[BlockLayoutBlock.cs:84](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.cs#L84)

Gets or sets how many layout columns this item spans.

 `public BlockLayoutShape Shape { get; set; }` [#](#property-shape) 

[BlockLayoutBlock.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.cs#L92)

Gets or sets the preferred item shape.

 `public bool IsSpace { get; }` [#](#property-isspace) 

[BlockLayoutBlock.cs:95](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.cs#L95)

Gets whether this item is an invisible spacer.

 `public string? ParentId { get; set; }` [#](#property-parentid) 

[BlockLayoutBlock.Hierarchy.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L36)

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

 `public bool IsComposite { get; set; }` [#](#property-iscomposite) 

[BlockLayoutBlock.Hierarchy.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L38)

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

 `public int? Columns { get; set; }` [#](#property-columns) 

[BlockLayoutBlock.Hierarchy.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L41)

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

 `public bool AutoColumns { get; set; }` [#](#property-autocolumns) 

[BlockLayoutBlock.Hierarchy.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L48)

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

 `public BlockLayoutArrowDirections ArrowDirections { get; set; }` [#](#property-arrowdirections) 

[BlockLayoutBlock.Hierarchy.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L50)

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

 `public ChartColor? Fill { get; set; }` [#](#property-fill) 

[BlockLayoutBlock.Hierarchy.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L52)

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

 `public ChartStrokeStyle? Stroke { get; set; }` [#](#property-stroke) 

[BlockLayoutBlock.Hierarchy.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L54)

Gets or sets immutable outline overrides.

 `public TextStyleOverride TextStyle { get; private set; }` [#](#property-textstyle) 

[BlockLayoutBlock.Hierarchy.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L56)

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; }` [#](#property-metadata) 

[BlockLayoutBlock.Hierarchy.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/BlockLayoutBlock.Hierarchy.cs#L58)

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

<!-- PowerForge markdown artifact sha256:789DC53DA69049C7570FF6E674C4F3031A94957B5036077B22C7ED9CB8DE746D -->
