Class DropDownTextStyle
Represents the styling information for dropdown items in a control. This includes properties such as font family, font size, font attributes, and text color. Used to customize the appearance of selected or unselected items in dropdown-based controls.
Inheritance
Namespace: Syncfusion.Maui.Inputs
Assembly: Syncfusion.Maui.Inputs.dll
Syntax
public class DropDownTextStyle : Element, ITextElement, IThemeElement
Constructors
DropDownTextStyle()
Declaration
public DropDownTextStyle()
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 |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FontAutoScalingEnabledProperty
Identifies the FontAutoScalingEnabled bindable property.
Declaration
public static readonly BindableProperty FontAutoScalingEnabledProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for FontAutoScalingEnabled bindable property. |
FontFamilyProperty
Gets or sets the font family to which the font for the label belongs.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FontSizeProperty
Gets or sets the size of the font for label.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TextColorProperty
Gets or sets the text color to SfTextInputLayout label.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
| Type |
|---|
| 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 |
|---|
| Microsoft.Maui.Controls.FontAttributes |
FontAutoScalingEnabled
Enables automatic font size adjustment based on device settings.
Declaration
public bool FontAutoScalingEnabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
FontFamily
Gets or sets the font family to which the font for the label belongs.
Declaration
public string FontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
FontSize
Gets or sets the size of the font for label.
Declaration
public double FontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
TextColor
Gets or sets the text color of SfTextInputLayout controls label.
Declaration
public Color TextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |