Class SfSegmentItem
Represents a single element in SfSegmentedControl View. It contains the properties to configure text and content region.
Inheritance
Implements
Namespace: Syncfusion.Android.Buttons
Assembly: Syncfusion.Buttons.Android.dll
Syntax
public class SfSegmentItem : Object, INotifyPropertyChanged
Constructors
SfSegmentItem()
Declaration
public SfSegmentItem()
Properties
BackgroundColor
Gets or sets the background color value for the segment item.
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
FontColor
Gets or sets the value for the color of text for a segment item.
Declaration
public Color FontColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
FontIconFontColor
Gets or sets the value for the color of font icon text for a segment item.
Declaration
public Color FontIconFontColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
FontIconFontSize
Gets or sets the value for the font size of icon font text for a segment item.
Declaration
public double FontIconFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
FontIconTypeface
Gets or sets the value for the font family of icon font text for a segment item.
Declaration
public Typeface FontIconTypeface { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Typeface |
FontSize
Gets or sets the value for the font size of text for a segment item.
Declaration
public double FontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
IconFont
Gets or sets the value for the font icon text for a Segment item.
Declaration
public string IconFont { get; set; }
Property Value
| Type |
|---|
| System.String |
IsEnabled
Gets or sets the value to choose whether the segment item is enabled or not.
Declaration
public bool IsEnabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
SelectionBackgroundColor
Gets or sets the background color value for the selected segment item.
Declaration
public Color SelectionBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
SelectionTextColor
Gets or sets the color value for the selection text of segment item.
Declaration
public Color SelectionTextColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
Text
Gets or sets the value for the text of Segment item.
Declaration
public string Text { get; set; }
Property Value
| Type |
|---|
| System.String |
Typeface
Gets or sets the value for the font representation of text for a segment item.
Declaration
public Typeface Typeface { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Typeface |
Methods
RaiseOnPropertyChanged(String)
This method is called by the Set accessor of each property. The CallerMemberName attribute that is applied to the optional propertyName parameter causes the property name of the caller to be substituted as an argument.
Declaration
protected virtual void RaiseOnPropertyChanged(string propertyName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | String type |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |