Class PropertyGridItem
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class PropertyGridItem : PropertyGridItemBase, INotifyPropertyChanged, IDataItem, ITypeDescriptorContext, IServiceProvider
Constructors
PropertyGridItem(PropertyGridTableElement)
Declaration
public PropertyGridItem(PropertyGridTableElement propertyGridElement)
Parameters
Property
|
PropertyGridItem(PropertyGridTableElement, PropertyGridItem)
Declaration
public PropertyGridItem(PropertyGridTableElement propertyGridElement, PropertyGridItem parentItem)
Parameters
Property
|
Property
|
Fields
cachedValue
Declaration
protected object cachedValue
Field Value
System.
|
Properties
Accessor
Gets the item accessor for this property item.
Declaration
public IItemAccessor Accessor { get; }
Property Value
Attributes
Gets a collection of the attributes applied to the property.
Declaration
public virtual AttributeCollection Attributes { get; }
Property Value
System.
|
Category
Gets the category of the property from its System.
Declaration
public virtual string Category { get; }
Property Value
System.
|
Container
Declaration
public IContainer Container { get; }
Property Value
System.
|
DataBoundItem
Declaration
public object DataBoundItem { get; set; }
Property Value
System.
|
Implements
DefaultSortOrder
Declaration
public bool DefaultSortOrder { get; set; }
Property Value
System.
|
Description
Gets or sets the description associated with this item.
Declaration
public override string Description { get; set; }
Property Value
System.
|
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
System.
|
Expandable
Gets a value indicating whether this is a complex property.
Declaration
public override bool Expandable { get; }
Property Value
System.
|
Overrides
FieldCount
Declaration
public int FieldCount { get; }
Property Value
System.
|
Implements
FormattedValue
Gets the value of the property as a string using its Type
Declaration
public virtual string FormattedValue { get; set; }
Property Value
System.
|
GridItems
Gets the sub items of the current if it is composed of several subitems.
Declaration
public override PropertyGridItemCollection GridItems { get; }
Property Value
Overrides
Instance
Declaration
public object Instance { get; }
Property Value
System.
|
IsModified
Gets a value indicating whether the property value is modified.
Declaration
public virtual bool IsModified { get; }
Property Value
System.
|
IsThreeState
Gets or sets a value defining whether check box editor will be three state.
Declaration
public virtual bool IsThreeState { get; set; }
Property Value
System.
|
Item[Int32]
Declaration
public object this[int index] { get; set; }
Parameters
System.
|
Property Value
System.
|
Implements
Item[String]
Declaration
public object this[string name] { get; set; }
Parameters
System.
|
Property Value
System.
|
Implements
Label
Gets or sets the text that would be displayed for this property.
Declaration
public override string Label { get; set; }
Property Value
System.
|
Overrides
Name
Gets the property name
Declaration
public override string Name { get; }
Property Value
System.
|
Overrides
OriginalValue
Gets the original property value.
Declaration
public virtual object OriginalValue { get; }
Property Value
System.
|
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
System.
|
PropertyType
Gets the property type
Declaration
public virtual Type PropertyType { get; }
Property Value
System.
|
ReadOnly
Gets a value indicating whether the property is read only.
Declaration
public virtual bool ReadOnly { get; }
Property Value
System.
|
SortOrder
Gets or sets a value defining the sort order of the item when no other sorting is applied.
Declaration
public virtual int SortOrder { get; set; }
Property Value
System.
|
TypeConverter
Gets the TypeConverter associated with this property
Declaration
public virtual TypeConverter TypeConverter { get; }
Property Value
System.
|
UITypeEditor
Gets the UITypeEditor associated with this property
Declaration
public virtual UITypeEditor UITypeEditor { get; }
Property Value
System.
|
Value
Gets or sets the item value.
Declaration
public virtual object Value { get; set; }
Property Value
System. 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.
Declaration
protected virtual string ConvertToPasswordString(string input)
Parameters
System. The input. |
Returns
System.
|
GetChildItems(PropertyGridItem, Object, Type)
Gets the child items for a given item.
Declaration
protected virtual PropertyGridItemCollection GetChildItems(PropertyGridItem parentItem, object obj, Type objType)
Parameters
Property The parent item for which to get the child items. |
System. The instance of the item. |
System. The type of the property. |
Returns
Property Collection of Property |
GetService(Type)
Declaration
public object GetService(Type serviceType)
Parameters
System.
|
Returns
System.
|
Implements
IndexOf(String)
Declaration
public int IndexOf(string name)
Parameters
System.
|
Returns
System.
|
Implements
OnComponentChanged()
Declaration
public void OnComponentChanged()
OnComponentChanging()
Declaration
public bool OnComponentChanging()
Returns
System.
|
ResetValue()
Resets the property value to its default value.
Declaration
public virtual void ResetValue()
SetParent(PropertyGridItem)
Declaration
protected virtual void SetParent(PropertyGridItem parent)
Parameters
Property
|
ShouldGetChildItemsAnew(Object, Object)
Determines if the item should update its child items based on the types of the old value and the new one.
Declaration
protected virtual bool ShouldGetChildItemsAnew(object oldValue, object newValue)
Parameters
System. The old value of this item. |
System. The new value of this item. |
Returns
System. True if child items should be updated otherwise false. |
TryGetDefaultValue(out Object)
Gets the default value of the current item. A return parameter determines if the operation succeeded.
Declaration
protected virtual bool TryGetDefaultValue(out object value)
Parameters
System. An object where the default value will be stored if there is such. |
Returns
System. True if the item has a default value otherwise false. |