menu

Blazor

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

    Show / Hide Table of Contents

    Class FlowchartLayoutSettings

    Configures the flow settings for the diagram layout.

    Inheritance
    System.Object
    FlowchartLayoutSettings
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FlowchartLayoutSettings : Object
    Examples
    <SfDiagramComponent Height="600px">
        <Layout Type="LayoutType.Flowchart" FlowchartLayoutSettings="@flowchartLayoutSettings" />
    </SfDiagramComponent>
    @code
    {
        FlowchartLayoutSettings flowchartLayoutSettings = new FlowchartLayoutSettings() 
        { 
            YesBranchDirection = BranchDirection.RightInFlow,
            NoBranchDirection = BranchDirection.LeftInFlow,
            YesBranchValues = new List<string>() { "Accept", "Yes" },
            NoBranchValues = new List<string>() { "Reject", "No" }
        };
    }

    Constructors

    FlowchartLayoutSettings()

    Declaration
    public FlowchartLayoutSettings()

    Properties

    NoBranchDirection

    Gets or sets the direction of the "No" branches in a flowchart layout.

    Declaration
    public BranchDirection NoBranchDirection { get; set; }
    Property Value
    Type Description
    BranchDirection

    The default value is RightInFlow.

    Remarks

    This property is applicable only when the Type property is set to Flowchart.

    Examples

    Example usage:

    <SfDiagramComponent Height="600px">
        <Layout Type="LayoutType.Flowchart" FlowchartLayoutSettings="@flowchartLayoutSettings" />
    </SfDiagramComponent>
    @code
    {
        FlowchartLayoutSettings flowchartLayoutSettings = new FlowchartLayoutSettings() 
        {
            NoBranchDirection = BranchDirection.LeftInFlow
        };
    }

    NoBranchValues

    Gets or sets the label text of connectors to be considered as 'No' branch connectors in the flowchart layout.

    Declaration
    public List<string> NoBranchValues { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    The default values are "No" and "False".

    Examples

    Example usage:

    <SfDiagramComponent Height="600px">
        <Layout Type="LayoutType.Flowchart" FlowchartLayoutSettings="@flowchartLayoutSettings" />
    </SfDiagramComponent>
    @code
    {
        FlowchartLayoutSettings flowchartLayoutSettings = new FlowchartLayoutSettings() 
        {
            NoBranchValues = new List<string>() { "Reject", "No" }
        };
    }

    YesBranchDirection

    Gets or sets the direction of the "Yes" branches in a flowchart layout.

    Declaration
    public BranchDirection YesBranchDirection { get; set; }
    Property Value
    Type Description
    BranchDirection

    The default value is LeftInFlow.

    Remarks

    This property is applicable only when the Type property is set to Flowchart.

    Examples

    Example usage:

    <SfDiagramComponent Height="600px">
        <Layout Type="LayoutType.Flowchart" FlowchartLayoutSettings="@flowchartLayoutSettings" />
    </SfDiagramComponent>
    @code
    {
        FlowchartLayoutSettings flowchartLayoutSettings = new FlowchartLayoutSettings() 
        { 
            YesBranchDirection = BranchDirection.RightInFlow
        };
    }

    YesBranchValues

    Gets or sets the label text of connectors to be considered as 'Yes' branch connectors in the flowchart layout.

    Declaration
    public List<string> YesBranchValues { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    The default values are "Yes" and "True".

    Examples

    Example usage:

    <SfDiagramComponent Height="600px">
        <Layout Type="LayoutType.Flowchart" FlowchartLayoutSettings="@flowchartLayoutSettings" />
    </SfDiagramComponent>
    @code
    {
        FlowchartLayoutSettings flowchartLayoutSettings = new FlowchartLayoutSettings() 
        {
            YesBranchValues = new List<string>() { "Accept", "Yes" }
        };
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved