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

    Specifies the behavior of the flow shape.

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

    Implements

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