alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class FlowchartLayoutSettings

    Represents the configuration settings for the flowchart diagram layout.

    Inheritance
    object
    FlowchartLayoutSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FlowchartLayoutSettings
    Remarks

    This class provides various settings to control the flow of branches within a flowchart.

    The properties within this class are specifically applicable when the Type property is set to Flowchart.

    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
    [JsonPropertyName("noBranchDirection")]
    public BranchDirection NoBranchDirection { get; set; }
    Property Value
    Type Description
    BranchDirection

    A BranchDirection value representing the direction. 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 consider as 'No' branch connectors in the flowchart layout.

    Declaration
    [JsonPropertyName("noBranchValues")]
    public List<string> NoBranchValues { get; set; }
    Property Value
    Type Description
    List<string>

    A List<T> containing the label text. 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
    [JsonPropertyName("yesBranchDirection")]
    public BranchDirection YesBranchDirection { get; set; }
    Property Value
    Type Description
    BranchDirection

    A BranchDirection value representing the direction. 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 consider as 'Yes' branch connectors in the flowchart layout.

    Declaration
    [JsonPropertyName("yesBranchValues")]
    public List<string> YesBranchValues { get; set; }
    Property Value
    Type Description
    List<string>

    A List<T> containing the label text. 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" }
        };
    }
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved