Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PropertyValueUIItemInvokeHandler Delegate

Represents the method that will handle the InvokeHandler event of a PropertyValueUIItem.

[Visual Basic]
<Serializable>
Public Delegate Sub PropertyValueUIItemInvokeHandler( _
   ByVal context As ITypeDescriptorContext, _
   ByVal descriptor As PropertyDescriptor, _
   ByVal invokedItem As PropertyValueUIItem _
)
[C#]
[Serializable]
public delegate void PropertyValueUIItemInvokeHandler(
   ITypeDescriptorContext context,
   PropertyDescriptor descriptor,
   PropertyValueUIItem invokedItem
);
[C++]
[Serializable]
public __gc __delegate void PropertyValueUIItemInvokeHandler(
   ITypeDescriptorContext* context,
   PropertyDescriptor* descriptor,
   PropertyValueUIItem* invokedItem
);

[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your callback method must have the same parameters as the PropertyValueUIItemInvokeHandler delegate declaration.

context
The ITypeDescriptorContext for the property associated with the icon that was double-clicked.
descriptor
The property associated with the icon that was double-clicked.
invokedItem
The PropertyValueUIItem associated with the icon that was double-clicked.

Remarks

Double-clicking an icon in the Properties window will raise the InvokeHandler event of the PropertyValueUIItem that the icon is associated with. The InvokeHandler event typically launches a user interface (UI) to edit the property's value. Add a PropertyValueUIItemInvokeHandler to the InvokeHandler property of a PropertyValueUIItem to assign an event handler to perform the appropriate behavior when the icon displayed next to the property name is double-clicked.

When you create a PropertyValueUIItemInvokeHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see Events and Delegates.

Requirements

Namespace: System.Drawing.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

System.Drawing.Design Namespace | ITypeDescriptorContext | PropertyValueUIItem | IPropertyValueUIService

Show:
© 2015 Microsoft