menu

Blazor

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

    Show / Hide Table of Contents

    Class LabelPosition

    Specifies the possible label positions for components supporting label alignment.

    Inheritance
    System.Object
    LabelPosition
    Namespace: Syncfusion.Blazor.Buttons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class LabelPosition : Enum
    Remarks

    The LabelPosition enumeration allows you to choose whether the label appears before or after the associated component, such as a button or an input. This enables customization of the UI layout and accessibility support.

    Examples

    The following example demonstrates how to set the label position for a button:

    <SfButton Label="Save" LabelPosition="LabelPosition.After" />

    Fields

    After

    Positions the label after the component (for example: text will be rendered to the right of a button).

    Declaration
    public const LabelPosition After
    Field Value
    Type Description
    LabelPosition

    Represents the label placed after the associated component.

    Remarks

    Use After to display the label following the component.

    Examples
    <SfButton Label="Click Me" LabelPosition="LabelPosition.After" />

    Before

    Positions the label before the component (for example: text will be rendered to the left of a button).

    Declaration
    public const LabelPosition Before
    Field Value
    Type Description
    LabelPosition

    Represents the label placed before the associated component.

    Remarks

    Use Before to display the label preceding the component.

    Examples
    <SfButton Label="Click Me" LabelPosition="LabelPosition.Before" />
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved