BlockDiagramBlock Class
A block of a block diagram: a shape with a text, which edges can link.
public class BlockDiagramBlock : BlockDiagramItem- Inheritance
BlockDiagramItemBlockDiagramBlock
Constructors
| Name | Description |
|---|---|
| BlockDiagramBlock(string, DiagramText?) | Initializes a new instance of the BlockDiagramBlock class. |
BlockDiagramBlock(string, DiagramText?)
BlockDiagramBlock.csInitializes a new instance of the BlockDiagramBlock class.
public BlockDiagramBlock(string id, DiagramText? label = null)Parameters
idstring- The identifier, unique in the diagram, which is shown when there is no label.
labelDiagramText?- The text, or
nullto show the identifier.
Properties
| Name | Description |
|---|---|
| CssClasses | Gets the CSS classes: the names of styles of BlockDiagram.ClassDefinitions. |
| Id | Gets the identifier of the block, unique in the diagram. |
| Label | Gets or sets the text, or null to show the identifier. |
| Shape | Gets or sets the shape. A composite block is a frame, and an arrow is an arrow, whatever their shape. |
| Style | Gets or sets the style, which takes precedence over the style of the classes. |
CssClasses
BlockDiagramBlock.csGets the CSS classes: the names of styles of BlockDiagram.ClassDefinitions.
Property value
Label
BlockDiagramBlock.csGets or sets the text, or null to show the identifier.
public DiagramText? Label { get; set; }Property value
Shape
BlockDiagramBlock.csGets 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
Style
BlockDiagramBlock.csGets or sets the style, which takes precedence over the style of the classes.
public DiagramStyle? Style { get; set; }Property value
Methods
| Name | Description |
|---|---|
| ToString() | Returns the identifier of the block. |