Skip to main content
Version: 4.2

Segment

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes one observable choice shared by SegmentedButton and ChipGroup.

public class Segment : INotifyPropertyChanged

A segment belongs to one collection. Value remains on the server and is never serialized to the browser.

Example:

choices.Items.Add(new Segment { Text = "Europe", Value = "EU", Count = 18 });

Constructors​

Instance member Segment()​

Initializes a new instance of Segment.

Properties​

Instance member Count​

Nullable<Int32>: Gets or sets the optional nonnegative count displayed by ChipGroup when ShowCounts is enabled. (Default: null)

Instance member Enabled​

Boolean: Gets or sets whether the user can activate or close this option. (Default: True)

Instance member Icon​

String: Gets or sets an image URL or theme image name. (Default: "")

Instance member Text​

String: Gets or sets the plain-text option label. (Default: "")

Instance member ToolTipText​

String: Gets or sets the plain-text option tooltip. (Default: "")

Instance member Value​

Object: Gets or sets the application value retained only on the server. (Default: null)

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs after a segment property changes.