New to Telerik UI for WinFormsStart a free 30-day trial

Represents a logical data item that contains the tokenzied text and its value

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTokenizedTextItem : IComparable<RadTokenizedTextItem>, INotifyPropertyChanged

Inheritance: objectRadTokenizedTextItem

Implements: IComparable<RadTokenizedTextItem>INotifyPropertyChanged

Constructors

Initializes a new instance of the RadTokenizedTextItem class.

C#
public RadTokenizedTextItem(string text, object value)
Parameters:textstring

The text.

valueobject

The value.

Properties

Gets the text.

C#
public string Text { get; protected set; }

Gets the value.

C#
public object Value { get; protected set; }

Methods

Compares the current object with another object of the same type.

C#
public virtual int CompareTo(RadTokenizedTextItem other)
Parameters:otherRadTokenizedTextItem

An object to compare with this object.

Returns:

int

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter.Zero This object is equal to other. Greater than zero This object is greater than other.

Implements: IComparable<RadTokenizedTextItem>.CompareTo(RadTokenizedTextItem)

Raises the event.

C#
protected void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Raises the event.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Name of the property.

Returns a string that represents this instance.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Overrides: object.ToString()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged