Class FlowShape
Represents a flow shape used within a diagram.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class FlowShape : Shape, IDiagramObject, ICloneable
Remarks
This class is useful for defining flowchart elements within a diagram.
Examples
<SfDiagramComponent Height="600px" Nodes="@nodes" />
@code {
//Initialize the node collection with node
DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>();
protected override void OnInitialized() {
Node node = new Node() {
ID = "node1",
//Size of the node
Height = 100,
Width = 100,
//Position of the node
OffsetX = 100,
OffsetY = 100,
//Set the type of shape as flow
Shape = new FlowShape() {
Type = NodeShapes.Flow,
Shape = NodeFlowShapes.DirectData
}
};
nodes.Add(node);
}
}
Constructors
FlowShape()
Initializes a new instance of the FlowShape class with default settings.
Declaration
public FlowShape()
FlowShape(FlowShape)
Creates a new instance of the FlowShape from the given FlowShape.
Declaration
public FlowShape(FlowShape src)
Parameters
Type | Name | Description |
---|---|---|
FlowShape | src | The source FlowShape to copy from. |
Properties
Shape
Gets or sets the specific type of flow shape.
Declaration
public NodeFlowShapes Shape { get; set; }
Property Value
Type | Description |
---|---|
NodeFlowShapes | A NodeFlowShapes specifying the shape type. The default value is Terminator. |
Remarks
This property dictates the visual representation of the node in flow diagrams.
Examples
<SfDiagramComponent Height="600px" Nodes="@nodes" />
@code {
//Initialize the node collection with node
DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>();
protected override void OnInitialized() {
Node node = new Node() {
ID = "node1",
//Size of the node
Height = 100,
Width = 100,
//Position of the node
OffsetX = 100,
OffsetY = 100,
//Set the type of shape as flow
Shape = new FlowShape() {
Type = NodeShapes.Flow,
Shape = NodeFlowShapes.DirectData
}
};
nodes.Add(node);
}
}
Methods
Clone()
Creates a new shape that is a copy of the current FlowShape.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new instance of FlowShape. |
Overrides
Implements
System.ICloneable