menu

Blazor

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

    Show / Hide Table of Contents

    Class VerticalAlignment

    Represents the alignment of the diagram elements based on its immediate parent.

    Inheritance
    System.Object
    VerticalAlignment
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class VerticalAlignment : Enum
    Examples
    <SfDiagramComponent Height="600px" Nodes="@nodes">
    </SfDiagramComponent>
    @code
    {
        public DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>() { };
        protected override void OnInitialized()
        {
            // A node is created and stored in nodes array.
            Node Node = new Node()
            {
                /// Initialize the port collection
                Ports = new DiagramObjectCollection<PointPort>()
                {
                    new PointPort()
                    {
                        VerticalAlignment = VerticalAlignment.Top
                    }
                },
            };
            nodes.Add(Node);
        }
    }

    Fields

    Auto

    Aligns the diagram element based on its immediate parent’s vertical alignment property.

    Declaration
    public const VerticalAlignment Auto
    Field Value
    Type
    VerticalAlignment

    Bottom

    Align the diagram element vertically to the bottom side of its immediate parent.

    Declaration
    public const VerticalAlignment Bottom
    Field Value
    Type
    VerticalAlignment

    Center

    Align the diagram element vertically to the center of its immediate parent.

    Declaration
    public const VerticalAlignment Center
    Field Value
    Type
    VerticalAlignment

    Stretch

    Stretch the diagram element vertically to its immediate parent.

    Declaration
    public const VerticalAlignment Stretch
    Field Value
    Type
    VerticalAlignment

    Top

    Align the diagram element vertically to the top side of its immediate parent.

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