menu

Blazor

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

    Show / Hide Table of Contents

    Class Orientation

    Representing the placement of child elements in a vertical or horizontal stack

    Inheritance
    System.Object
    Orientation
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class Orientation : Enum
    Examples
    <SfDiagramComponent  SetNodeTemplate="SetTemplate">
    </SfDiagramComponent>
    @code
    {
     private CommonElement SetTemplate(IDiagramObject node)
     {
       var table = new StackPanel();
       table.Orientation = Orientation.Horizontal;
       return table;
     }
    }

    Fields

    Horizontal

    Sets the orientation to Horizontal.

    Declaration
    public const Orientation Horizontal
    Field Value
    Type
    Orientation

    Vertical

    Sets the orientation to Vertical.

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