menu

Blazor

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

    Show / Hide Table of Contents

    Class HorizontalAlignment

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

    Inheritance
    System.Object
    HorizontalAlignment
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class HorizontalAlignment : Enum
    Examples
            Node Node = new Node()
            {
                Ports = new DiagramObjectCollection<PointPort>()
                {
                    new PointPort()
                    {
                        HorizontalAlignment = HorizontalAlignment.Left
                    }
                },
            };

    Fields

    Auto

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

    Declaration
    public const HorizontalAlignment Auto
    Field Value
    Type
    HorizontalAlignment

    Center

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

    Declaration
    public const HorizontalAlignment Center
    Field Value
    Type
    HorizontalAlignment

    Left

    Align the diagram element horizontally to the left side of its immediate parent.

    Declaration
    public const HorizontalAlignment Left
    Field Value
    Type
    HorizontalAlignment

    Right

    Align the diagram element horizontally to the right side of its immediate parent.

    Declaration
    public const HorizontalAlignment Right
    Field Value
    Type
    HorizontalAlignment

    Stretch

    Stretch the diagram element horizontally to its immediate parent.

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