Class FlowShape
Specifies the behavior of the flow shape.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class FlowShape : Shape, IDiagramObject, ICloneable
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.
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 | FlowShape |
Properties
Shape
Defines the available built-in flow shapes.
Declaration
public NodeFlowShapes Shape { get; set; }
Property Value
Type |
---|
NodeFlowShapes |
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 | it returns FlowShape |
Overrides
Implements
System.ICloneable