Class FlowchartLayoutSettings
Represents the configuration settings for the flowchart diagram layout.
Inheritance
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class FlowchartLayoutSettings : Object
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
public BranchDirection NoBranchDirection { get; set; }
Property Value
Type | Description |
---|---|
BranchDirection | A BranchDirection value representing the direction. The default value is RightInFlow. |
Remarks
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
public List<string> NoBranchValues { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | A System.Collections.Generic.List<> 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
public BranchDirection YesBranchDirection { get; set; }
Property Value
Type | Description |
---|---|
BranchDirection | A BranchDirection value representing the direction. The default value is LeftInFlow. |
Remarks
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
public List<string> YesBranchValues { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | A System.Collections.Generic.List<> 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" }
};
}