System.ComponentModel.Design.DesignerActionPropertyItem Class

Represents a panel item that is associated with a property in a class derived from System.ComponentModel.Design.DesignerActionList. This class cannot be inherited.

See Also: DesignerActionPropertyItem Members

Syntax

public sealed class DesignerActionPropertyItem : DesignerActionItem

Remarks

The System.ComponentModel.Design.DesignerActionPropertyItem class represents individual items in a smart tag panel. Each item is typically associated with a property in a class that is derived from the System.ComponentModel.Design.DesignerActionList class and supplied by the component author. The association is maintained through the name of the property, as stored in the DesignerActionPropertyItem.MemberName property.

Individual panel items are associated together to form a panel by a call to the DesignerActionList.GetSortedActionItems method of the System.ComponentModel.Design.DesignerActionList class.

To display the value of the associated property, that property must have a get accessor method; to allow editing, the property must have a set accessor method. The way in which the panel allows direct editing of a property item by the user depends on the supporting type information present for the data type of the associated property. The following table shows the likely scheme.

Has an associated type editor (System.Drawing.Design.UITypeEditor)

The type editor associated with the underlying property is displayed for editing the property's value.

Has an associated type converter to a known type (System.ComponentModel.TypeConverter)

The type editor for the known type is displayed for editing the property's value. For example, a type converter to string will likely display a System.Windows.Forms.TextBox.

Boolean value

The item is displayed using a binary UI, such as a check mark.

None of the above.

The item is displayed as a non-editable text string using the data type's object.ToString method.

All fundamental types, such as bool, and common dnprdnshort data types, such as string, supply standard type converters and editors. For more information about type converters, see How to: Implement a Type Converter or Generalized Type Conversion. For more information about type editors, see How to: Implement a UI Type Editor.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0