PropertyGridItem
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
public PropertyGridItem(PropertyGridTableElement propertyGridElement, PropertyGridItem parentItem)
public PropertyGridItem(PropertyGridTableElement propertyGridElement)
Fields
protected object cachedValue
Properties
Gets the item accessor for this property item.
public IItemAccessor Accessor { get; }
Gets a collection of the attributes applied to the property.
public virtual AttributeCollection Attributes { get; }
Gets the category of the property from its CategoryAttribute or returns "Other" if no category is specified.
public virtual string Category { get; }
public IContainer Container { get; }
Implements:
public object DataBoundItem { get; set; }
Implements:
public bool DefaultSortOrder { get; set; }
Gets or sets the description associated with this item.
public override string Description { get; set; }
Overrides:
Gets or sets an error message to be displayed when property value validation fails.
public virtual string ErrorMessage { get; set; }
Gets a value indicating whether this is a complex property.
public override bool Expandable { get; }
Overrides:
public int FieldCount { get; }
Implements:
Gets the value of the property as a string using its TypeConverter.
public virtual string FormattedValue { get; set; }
Gets the sub items of the current if it is composed of several sub-items.
public override PropertyGridItemCollection GridItems { get; }
Overrides:
Gets a value indicating whether the property value is modified.
public virtual bool IsModified { get; }
Gets or sets a value defining whether check box editor will be three state.
public virtual bool IsThreeState { get; set; }
Gets or sets the text that would be displayed for this property.
public override string Label { get; set; }
Overrides:
Gets the original property value.
public virtual object OriginalValue { get; }
Gets or sets the parent of this item.
public override PropertyGridItemBase Parent { get; }
Overrides:
Gets the property descriptor for this property.
public virtual PropertyDescriptor PropertyDescriptor { get; }
Implements:
Gets the property type
public virtual Type PropertyType { get; }
Gets a value indicating whether the property is read only.
public virtual bool ReadOnly { get; }
Gets or sets a value defining the sort order of the item when no other sorting is applied.
public virtual int SortOrder { get; set; }
Gets the TypeConverter associated with this property
public virtual TypeConverter TypeConverter { get; }
Gets the UITypeEditor associated with this property
public virtual UITypeEditor UITypeEditor { get; }
Methods
Selects this item and puts the Property grid in edit mode.
public virtual void BeginEdit()
Gets the child items for a given item.
protected virtual PropertyGridItemCollection GetChildItems(PropertyGridItem parentItem, object obj, Type objType)
The parent item for which to get the child items.
objobjectThe instance of the item.
objTypeTypeThe type of the property.
Returns:Collection of PropertyGridItem
public void OnComponentChanged()
Implements:
Resets the property value to its default value.
public virtual void ResetValue()
Determines if the item should update its child items based on the types of the old value and the new one.
Gets the default value of the current item. A return parameter determines if the operation succeeded.