New to Telerik UI for WinForms? Start a free 30-day trial

Represents a list item with a secondary description line in addition to its main text.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DescriptionTextListDataItem : RadListDataItem, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem

Inheritance: objectDisposableObjectRadObjectRadListDataItemDescriptionTextListDataItem

Implements: ICustomTypeDescriptorIDataItemIDisposableINotifyPropertyChanged

Inherited Members RadListDataItem.HeightPropertyRadListDataItem.ActivePropertyRadListDataItem.SelectedPropertyRadListDataItem.ValuePropertyRadListDataItem.dataLayerRadListDataItem.ownerElementRadListDataItem.OnPropertyChanged(RadPropertyChangedEventArgs)RadListDataItem.ToString()RadListDataItem.GetBoundValue()RadListDataItem.GetUnboundValue()RadListDataItem.SetUnboundValue(object)RadListDataItem.TagRadListDataItem.IsDataBoundRadListDataItem.OwnerControlRadListDataItem.HeightRadListDataItem.TextWrapRadListDataItem.RowIndexRadListDataItem.DisplayValueRadListDataItem.ValueRadListDataItem.ActiveRadListDataItem.SelectedRadListDataItem.EnabledRadListDataItem.TextRadListDataItem.ImageRadListDataItem.SvgImageRadListDataItem.TextImageRelationRadListDataItem.ImageAlignmentRadListDataItem.TextAlignmentRadListDataItem.TextOrientationRadListDataItem.FontRadListDataItem.ForeColorRadListDataItem.IsVisibleRadListDataItem.VisualItemRadListDataItem.MeasuredSizeRadListDataItem.IndexRadListDataItem.DataBoundItemRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes an item with an empty main text and description.

C#
public DescriptionTextListDataItem()

Initializes an item with main text, secondary description text, and an unbound value.

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

The main text displayed for the item.

descriptionTextstring

The secondary text displayed below the main text.

valueobject

The value returned by Value while the item is unbound.

Initializes an item with main text and secondary description text.

C#
public DescriptionTextListDataItem(string text, string descriptionText)
Parameters:textstring

The main text displayed for the item.

descriptionTextstring

The secondary text displayed below the main text.

Fields

Identifies the inheritable font used for the item's description text.

C#
public static RadProperty DescriptionFontProperty

Identifies the secondary text displayed for this item.

C#
public static readonly RadProperty DescriptionTextProperty

Properties

Gets or sets the font for this RadListDataItem instance.

C#
[Browsable(true)]
public Font DescriptionFont { get; set; }

Gets or sets the secondary text rendered below the item's main text.

C#
public string DescriptionText { get; set; }

When a bound data object is assigned, SetDataBoundItem(bool, object) populates this property from the data layer, using DescriptionTextMember when configured.

Gets the owning list element. Attaching this item marks the element as using description-text layout.

C#
[Browsable(false)]
public override RadListElement Owner { get; }

Overrides: RadListDataItem.Owner

Methods

Assigns the underlying data object and initializes this item's description from the configured bound description value.

C#
protected override void SetDataBoundItem(bool dataBinding, object value)
Parameters:dataBindingbool

Indicates whether the assignment comes from the data-binding engine.

valueobject

The underlying data object to store.

Overrides: RadListDataItem.SetDataBoundItem(bool, object)