menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FlowShape - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FlowShape

    Represents a flow shape used within a diagram.

    Inheritance
    System.Object
    DiagramObject
    Shape
    FlowShape
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    Shape.Type
    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.

    The FlowShape class inherits from the Shape base class.

    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
    Shape.Clone()

    Implements

    IDiagramObject
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved