API Reference
Class
BlockLayoutBlock
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.
Returned or exposed by 17
- Extension method MermaidBlockDocument.ToBlockLayoutBlock
- Method MermaidBlockRendering.ToBlockLayoutBlock
- Method BlockLayoutBlock.AddEdge
- Method BlockLayoutBlock.AddItem
- Method BlockLayoutBlock.AddSpace
- Method BlockLayoutBlock.Create
- Method BlockLayoutBlock.WithCard
- Method BlockLayoutBlock.WithColumns
- Method BlockLayoutBlock.WithEdges
- Method BlockLayoutBlock.WithHostFrame
- Method BlockLayoutBlock.WithPadding
- Method BlockLayoutBlock.WithPngOutputScale
- Method BlockLayoutBlock.WithSize
- Method BlockLayoutBlock.WithSubtitle
- Method BlockLayoutBlock.WithTheme
- Method BlockLayoutBlock.WithTitle
- Method BlockLayoutBlock.WithTransparentBackground
Constructors
public BlockLayoutBlock() #Methods
public BlockLayoutBlock AddEdge(String sourceId, String targetId, String label = "", Boolean directed = true) #Returns:
BlockLayoutBlockAdds an edge between two visible block items.
Parameters
- sourceId System.String
- targetId System.String
- label System.String = ""
- directed System.Boolean = true
public BlockLayoutBlock AddItem(String id, String label, Int32 columnSpan = 1, BlockLayoutShape shape = Rectangle) #Returns:
BlockLayoutBlockAdds a visible block item.
Parameters
- id System.String
- label System.String
- columnSpan System.Int32 = 1
- shape ChartForgeX.VisualBlocks.BlockLayoutShape = Rectangle
public BlockLayoutBlock AddSpace(Int32 columnSpan = 1) #Returns:
BlockLayoutBlockAdds an invisible spacer that occupies one or more columns.
Parameters
- columnSpan System.Int32 = 1
public BlockLayoutBlock WithColumns(Int32 columns) #Returns:
BlockLayoutBlockSets the number of layout columns.
Parameters
- columns System.Int32
public BlockLayoutBlock WithEdges(Boolean visible = true) #Returns:
BlockLayoutBlockSets whether edges are rendered when present.
Parameters
- visible System.Boolean = true
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
public virtual RgbaImage RenderRgba() #Returns:
RgbaImageInherited from 0, Culture=neutral, PublicKeyToken=null]]
public virtual String RenderSvg(String idScope) #Returns:
StringInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- idScope String
public BlockLayoutBlock WithCard(Boolean enabled = true) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- enabled Boolean = true
public BlockLayoutBlock WithHostFrame(Boolean hostOwnsFrame = true) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- hostOwnsFrame Boolean = true
WithPadding 2 overloads
public BlockLayoutBlock WithPadding(Double padding) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- padding Double
public BlockLayoutBlock WithPadding(Double left, Double top, Double right, Double bottom) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- left Double
- top Double
- right Double
- bottom Double
public BlockLayoutBlock WithPngOutputScale(Int32 scale) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- scale Int32
public BlockLayoutBlock WithSize(Int32 width, Int32 height) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- width Int32
- height Int32
public BlockLayoutBlock WithSubtitle(String subtitle) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- subtitle String
public BlockLayoutBlock WithTheme(ChartTheme theme) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- theme ChartTheme
public BlockLayoutBlock WithTitle(String title) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- title String
public BlockLayoutBlock WithTransparentBackground(Boolean enabled = true) #Returns:
BlockLayoutBlockInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- enabled Boolean = true
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.