menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SegmentTextStyle - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SegmentTextStyle

    Gets or sets properties which allows to customize the segment item text style of the SfSegmentedControl.

    Inheritance
    System.Object
    SegmentTextStyle
    Namespace: Syncfusion.Maui.Buttons
    Assembly: Syncfusion.Maui.Buttons.dll
    Syntax
    public class SegmentTextStyle : Element, ITextElement, IThemeElement

    Constructors

    SegmentTextStyle()

    Initializes a new instance of the SegmentTextStyle class.

    Declaration
    public SegmentTextStyle()

    Fields

    FontAttributesProperty

    Identifies the FontAttributes bindable property.

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

    The identifier for FontAttributes bindable property.

    FontAutoScalingEnabledProperty

    Identifies the FontAttributes bindable property.

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

    The identifier for FontAttributes bindable property.

    FontFamilyProperty

    Identifies the FontFamily bindable property.

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

    The identifier for FontFamily bindable property.

    FontSizeProperty

    Identifies the FontSize bindable property.

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

    The identifier for FontSize bindable property.

    TextColorProperty

    Identifies the TextColor bindable property.

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

    The identifier for TextColor bindable property.

    Properties

    FontAttributes

    Gets or sets the FontAttributes of the SfSegmentedControl.

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

    The default value is Microsoft.Maui.Controls.FontAttributes.None.

    FontAutoScalingEnabled

    Gets or sets a value indicating whether or not the font of the control should scale automatically according to the operating system settings.

    Declaration
    public bool FontAutoScalingEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    FontFamily

    Gets or sets the string, that represents font family of the SfSegmentedControl.

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

    It will be applicable to all the style related properties of the SfSegmentedControl.

    FontSize

    Gets or sets the double value that represents the font size of the SfSegmentedControl.

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

    It will be applicable to all the style related properties of the SfSegmentedControl.

    TextColor

    Gets or sets the text color for the SfSegmentedControl.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    The default value of TextColor is Microsoft.Maui.Graphics.Colors.Black.

    Remarks

    It will be applicable to all the style related properties of the SfSegmentedControl.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved