Class SfSegmentItem
Represents a single element in SfSegmentedControl View. It contains the properties to configure text and content region.
Inheritance
Implements
Namespace: Syncfusion.iOS.Buttons
Assembly: Syncfusion.Buttons.iOS.dll
Syntax
public class SfSegmentItem : Object, INotifyPropertyChanged
Constructors
SfSegmentItem()
Declaration
public SfSegmentItem()
Properties
BackgroundColor
Gets or sets the background color value for the selected segment item.
Declaration
public UIColor BackgroundColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
Color
Gets or sets the value for the color of text for a segment item.
Declaration
public UIColor Color { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
Font
Gets or sets the value for the font representation of text for a segment item.
Declaration
public UIFont Font { get; set; }
Property Value
| Type |
|---|
| UIKit.UIFont |
FontColor
Gets or sets the value for the color of text for a segment item.
Declaration
public UIColor FontColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
FontIconFont
Gets or sets the value for the font family of icon font text for a segment item.
Declaration
public UIFont FontIconFont { get; set; }
Property Value
| Type |
|---|
| UIKit.UIFont |
FontIconFontColor
Gets or sets the value for the color of font icon text for a segment item.
Declaration
public UIColor FontIconFontColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
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 a value indicating whether 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 UIColor SelectionBackgroundColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
SelectionTextColor
Gets or sets the color value for the selection text of segment item.
Declaration
public UIColor SelectionTextColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
Text
Gets or sets the value for the text of Segment item.
Declaration
public string Text { get; set; }
Property Value
| Type |
|---|
| System.String |
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 |