PropertyValueUIItemInvokeHandler Delegate

PropertyValueUIItemInvokeHandler Delegate

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

[Visual Basic]
Public Delegate Sub PropertyValueUIItemInvokeHandler( _
   ByVal context As ITypeDescriptorContext, _
   ByVal descriptor As PropertyDescriptor, _
   ByVal invokedItem As PropertyValueUIItem _
public delegate void PropertyValueUIItemInvokeHandler(
   ITypeDescriptorContext context,
   PropertyDescriptor descriptor,
   PropertyValueUIItem invokedItem
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.

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


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.


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

© 2016 Microsoft