MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LabelStyle

    Show / Hide Table of Contents

    Class LabelStyle

    Inheritance
    System.Object
    LabelStyle
    Namespace: Syncfusion.Maui.Core
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public class LabelStyle : BindableObject, ITextElement

    Constructors

    LabelStyle()

    Declaration
    public LabelStyle()

    Fields

    FontAttributesProperty

    Gets or sets a value that indicates whether the font for the label is bold, italic, or neither.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    FontFamilyProperty

    Gets or sets the font family to which the font for the label belongs.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    FontSizeProperty

    Gets or sets the size of the font for label.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    TextColorProperty

    Gets or sets the text color to SfTextInputLayout label.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Properties

    FontAttributes

    Gets or sets a value that indicates whether the font for the label is bold, italic, or neither.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.FontAttributes

    FontFamily

    Gets or sets the font family to which the font for the label belongs.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontSize

    Gets or sets the size of the font for label.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    TextColor

    Gets or sets the text color of SfTextInputLayout controls label. This property is used to customize helper label, hint label and counter label text color.For customizing error label text color, use Stroke property value in error state.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved