Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

BlockLayoutBlock

Namespace ChartForgeX.VisualBlocks
Assembly ChartForgeX
Base VisualBlock<BlockLayoutBlock>
Modifiers sealed

A deterministic grid-based block layout with optional directed edges.

Inheritance

  • VisualBlock<BlockLayoutBlock>
  • BlockLayoutBlock

Usage

Explore 17 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.

Constructors

public BlockLayoutBlock() #

Methods

public BlockLayoutBlock AddEdge(String sourceId, String targetId, String label = "", Boolean directed = true) #
Returns: BlockLayoutBlock

Adds an edge between two visible block items.

Parameters

sourceId System.String requiredposition: 0
targetId System.String requiredposition: 1
label System.String = "" optionalposition: 2
directed System.Boolean = true optionalposition: 3
public BlockLayoutBlock AddItem(String id, String label, Int32 columnSpan = 1, BlockLayoutShape shape = Rectangle) #
Returns: BlockLayoutBlock

Adds a visible block item.

Parameters

id System.String requiredposition: 0
label System.String requiredposition: 1
columnSpan System.Int32 = 1 optionalposition: 2
shape ChartForgeX.VisualBlocks.BlockLayoutShape = Rectangle optionalposition: 3
public BlockLayoutBlock AddSpace(Int32 columnSpan = 1) #
Returns: BlockLayoutBlock

Adds an invisible spacer that occupies one or more columns.

Parameters

columnSpan System.Int32 = 1 optionalposition: 0
public static BlockLayoutBlock Create() #
Returns: BlockLayoutBlock

Creates a block layout.

public BlockLayoutBlock WithColumns(Int32 columns) #
Returns: BlockLayoutBlock

Sets the number of layout columns.

Parameters

columns System.Int32 requiredposition: 0
public BlockLayoutBlock WithEdges(Boolean visible = true) #
Returns: BlockLayoutBlock

Sets whether edges are rendered when present.

Parameters

visible System.Boolean = true optionalposition: 0

Properties

public IReadOnlyList<BlockLayoutItem> Items { get; } #

Gets block items in source/layout order.

public IReadOnlyList<BlockLayoutEdge> Edges { get; } #

Gets edges between visible block items.

public Int32 Columns { get; set; } #

Gets or sets the number of layout columns.

public Boolean ShowEdges { get; set; } #

Gets or sets whether edges are rendered when present.

public override String AccessibleName { get; } #

Gets a concise accessibility label.