ClassPropertyGridItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridItem : PropertyGridItemBase, INotifyPropertyChanged, IDataItem, ITypeDescriptorContext, IServiceProvider
Inheritance: objectPropertyGridItemBasePropertyGridItem
Implements:
Inherited Members
Constructors
PropertyGridItem(PropertyGridTableElement)
Declaration
public PropertyGridItem(PropertyGridTableElement propertyGridElement)
Parameters
propertyGridElement
PropertyGridItem(PropertyGridTableElement, PropertyGridItem)
Declaration
public PropertyGridItem(PropertyGridTableElement propertyGridElement, PropertyGridItem parentItem)
Parameters
propertyGridElement
parentItem
Fields
Properties
Accessor
Gets the item accessor for this property item.
Attributes
Gets a collection of the attributes applied to the property.
Declaration
public virtual AttributeCollection Attributes { get; }
Property Value
Category
Gets the category of the property from its CategoryAttribute or returns "Other" if no category is specified.
Container
Declaration
public IContainer Container { get; }
Property Value
Implements
DataBoundItem
Declaration
public object DataBoundItem { get; set; }
Property Value
Implements
Description
Gets or sets the description associated with this item.
Declaration
public override string Description { get; set; }
Property Value
Overrides
ErrorMessage
Gets or sets an error message to be displayed when property value validation fails.
Declaration
public virtual string ErrorMessage { get; set; }
Property Value
Expandable
Gets a value indicating whether this is a complex property.
Declaration
public override bool Expandable { get; }
Property Value
Overrides
FormattedValue
Gets the value of the property as a string using its TypeConverter.
Declaration
public virtual string FormattedValue { get; set; }
Property Value
GridItems
Gets the sub items of the current if it is composed of several subitems.
Declaration
public override PropertyGridItemCollection GridItems { get; }
Property Value
Overrides
IsModified
Gets a value indicating whether the property value is modified.
IsThreeState
Gets or sets a value defining whether check box editor will be three state.
Label
Gets or sets the text that would be displayed for this property.
Declaration
public override string Label { get; set; }
Property Value
Overrides
Name
Gets the property name
OriginalValue
Gets the original property value.
Parent
Gets or sets the parent of this item.
Declaration
public override PropertyGridItemBase Parent { get; }
Property Value
Overrides
PropertyDescriptor
Gets the property descriptor for this property.
Declaration
public virtual PropertyDescriptor PropertyDescriptor { get; }
Property Value
Implements
PropertyType
Gets the property type
ReadOnly
Gets a value indicating whether the property is read only.
SortOrder
Gets or sets a value defining the sort order of the item when no other sorting is applied.
TypeConverter
Gets the TypeConverter associated with this property
Declaration
public virtual TypeConverter TypeConverter { get; }
Property Value
UITypeEditor
Gets the UITypeEditor associated with this property
Declaration
public virtual UITypeEditor UITypeEditor { get; }
Property Value
Value
Gets or sets the item value.
Declaration
public virtual object Value { get; set; }
Property Value
The text.
Methods
BeginEdit()
Selects this item and puts the Property grid in edit mode.
Declaration
public virtual void BeginEdit()
ConvertToPasswordString(string)
Converts a string into a password string.
GetChildItems(PropertyGridItem, object, Type)
Gets the child items for a given item.
Declaration
protected virtual PropertyGridItemCollection GetChildItems(PropertyGridItem parentItem, object obj, Type objType)
Parameters
parentItem
The parent item for which to get the child items.
obj
The instance of the item.
objType
The type of the property.
Returns
Collection of PropertyGridItem
OnComponentChanged()
Declaration
public void OnComponentChanged()
Implements
ResetValue()
Resets the property value to its default value.
Declaration
public virtual void ResetValue()
SetParent(PropertyGridItem)
Declaration
protected virtual void SetParent(PropertyGridItem parent)
Parameters
parent
ShouldGetChildItemsAnew(object, object)
Determines if the item should update its child items based on the types of the old value and the new one.
TryGetDefaultValue(out object)
Gets the default value of the current item. A return parameter determines if the operation succeeded.