menu

Blazor

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

    Show / Hide Table of Contents

    Class BranchType

    Defines the Alignment position

    Inheritance
    System.Object
    BranchType
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class BranchType : Enum
    Examples
    <SfDiagramComponent>
        <DataSourceSettings ID = "Id" ParentID="Team" DataSource="@DataSource"></DataSourceSettings>   
        <Layout Type = "LayoutType.MindMap">
        </Layout>
    </SfDiagramComponent>
    @code
    {
       public class OrgChartDataModel 
       {
           public string Id  { get; set; }
           public string Team { get; set; }
           public string Role { get; set; }
            public BranchType branch { get; set; }
       }
       public object DataSource = new List<object>()
       {
           new OrgChartDataModel() { Id= "1", Role= "General Manager" ,branch = BranchType.Root},
       };
    }

    Fields

    Left

    Sets the branch type as Left

    Declaration
    public const BranchType Left
    Field Value
    Type
    BranchType

    Right

    Sets the branch type as Right

    Declaration
    public const BranchType Right
    Field Value
    Type
    BranchType

    Root

    Sets the branch type as Root

    Declaration
    public const BranchType Root
    Field Value
    Type
    BranchType

    SubLeft

    Sets the branch type as SubLeft

    Declaration
    public const BranchType SubLeft
    Field Value
    Type
    BranchType

    SubRight

    Sets the branch type as SubRight

    Declaration
    public const BranchType SubRight
    Field Value
    Type
    BranchType
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved