PropertyGridItemBase
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class PropertyGridItemBase : INotifyPropertyChanged
Inheritance: objectPropertyGridItemBase
Derived Classes:
Implements:
Constructors
public PropertyGridItemBase(PropertyGridTableElement propertyGridElement)
Fields
protected const int IsEnableState = 8
protected const int IsExpandedState = 2
protected const int IsModifiedState = 16
protected const int IsVisibleState = 4
protected BitVector32 state
protected const int SuspendNotificationsState = 1
Properties
Gets or sets the context menu associated to the item.
public virtual RadContextMenu ContextMenu { get; set; }
Returns an instance of RadDropDownMenu that is associated with the item. The default value is null.
This property could be used to associate a custom menu and replace the property grid's default. If the context menu is invoked by right-clicking an item, the property grid's menu will not be shown and the context menu assigned to this item will be shown instead.
Gets or sets the description associated with this item.
public virtual string Description { get; set; }
Gets or sets a value indicating whether the item can respond to user interaction.
public virtual bool Enabled { get; set; }
The default value is true.
Gets a value indicating whether this item is expandable.
public abstract bool Expandable { get; }
Gets or sets a value indicating whether this item is expanded.
public virtual bool Expanded { get; set; }
true if this item is expanded; otherwise, false.
Gets the child items list associated with this item.
public abstract PropertyGridItemCollection GridItems { get; }
Gets or sets the image of the node.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image Image { get; set; }
Gets or sets the left image list index value of the image displayed when the tree node is not selected.
[RelatedImageList("PropertyGrid.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.NoneExcludedImageIndexConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual int ImageIndex { get; set; }
Gets or sets the key for the left image associated with this tree node when the node is not selected.
[RelatedImageList("PropertyGrid.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.RadImageKeyConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public string ImageKey { get; set; }
Gets or sets the height of the item.
public int ItemHeight { get; set; }
The default value is 20.
Gets or sets the text associated with this item.
public virtual string Label { get; set; }
Gets a value indicating how deep in the hierarchy this propety is.
public int Level { get; }
Gets the parent item for this item.
public virtual PropertyGridItemBase Parent { get; }
Gets the parent property grid that the item is assigned to.
public virtual PropertyGridTableElement PropertyGridTableElement { get; }
Gets or sets a value indicating whether this item is selected.
public virtual bool Selected { get; set; }
true if this item is selected; otherwise, false.
Gets or sets the tag object that can be used to store user data, corresponding to the item.
public virtual object Tag { get; set; }
The tag.
Gets or sets the tool tip text associated with this item.
public virtual string ToolTipText { get; set; }
Methods
Collapses the item.
public virtual void Collapse()
Ensures that this item is visible in the content of the RadPropertyGridElement.
public virtual void EnsureVisible()
Expandes the item.
public virtual void Expand()
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Resumes property notifications after a previous SuspendPropertyNotifications call.
public void ResumePropertyNotifications()
Selects the grid tiem.
public virtual void Select()
Allows PropertyChanged notifications to be temporary suspended.
public void SuspendPropertyNotifications()
protected virtual void Update(PropertyGridTableElement.UpdateActions updateAction)
Events
public event PropertyChangedEventHandler PropertyChanged
Implements: