BlockDiagramBlock Class

A block of a block diagram: a shape with a text, which edges can link.

public class BlockDiagramBlock : BlockDiagramItem
Inheritance
BlockDiagramItem BlockDiagramBlock

Constructors

NameDescription
BlockDiagramBlock(string, DiagramText?)Initializes a new instance of the BlockDiagramBlock class.

BlockDiagramBlock(string, DiagramText?)

BlockDiagramBlock.cs

Initializes a new instance of the BlockDiagramBlock class.

public BlockDiagramBlock(string id, DiagramText? label = null)

Parameters

id string
The identifier, unique in the diagram, which is shown when there is no label.
label DiagramText?
The text, or null to show the identifier.

Properties

NameDescription
CssClassesGets the CSS classes: the names of styles of BlockDiagram.ClassDefinitions.
IdGets the identifier of the block, unique in the diagram.
LabelGets or sets the text, or null to show the identifier.
ShapeGets or sets the shape. A composite block is a frame, and an arrow is an arrow, whatever their shape.
StyleGets or sets the style, which takes precedence over the style of the classes.

Gets the CSS classes: the names of styles of BlockDiagram.ClassDefinitions.

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets the identifier of the block, unique in the diagram.

public string Id { get; }

Property value

string

Gets or sets the text, or null to show the identifier.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Gets or sets the shape. A composite block is a frame, and an arrow is an arrow, whatever their shape.

public FlowchartNodeShape Shape { get; set; }

Property value

FlowchartNodeShape

Gets or sets the style, which takes precedence over the style of the classes.

public DiagramStyle? Style { get; set; }

Property value

DiagramStyle?

Methods

NameDescription
ToString()Returns the identifier of the block.

Returns the identifier of the block.

public override string ToString()

Returns

string The identifier.