This document is archived and information here might be outdated.  Recommended version.


ICustomizationFilter.OnCustomizationEvent Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Framework)  

ICustomizationFilter.OnCustomizationEvent Method

Occurs when certain types of customization occur.

[Visual Basic .NET]
Public Function OnCustomizationEvent ( _
    ByVal custEventType As esriCustomizationEvent, _
    ByVal eventCtx As Object _
) As Boolean
[C#]
public bool OnCustomizationEvent (
    esriCustomizationEvent custEventType,
    object eventCtx
);

Product Availability

Available with ArcGIS Desktop.

Description


custEventType One of six types of customization events that can happen. These are defined by the esriCustomizationEvent constants.

eventCtx provides event context information for each type of customization event. Refer to the list below to see what type of information is provided by eventCtx for each customization event type.

custEventType                       eventCtx
esriCEAddCategory              string representing category name
esriCEAddCommand             UID or string identifying a command
esriCEShowCustDlg              nothing
esriCEShowVBAIDE              nothing
esriCEInvokeCommand         CommandItem
esriCEShowCustCtxMenu      nothing
esriCERunVBACode              string representing the project.module.function
esriCEEditVBACode              string representing the project.module name

Remarks

In the Customize dialog, Macros, Menus, New Menus, and UIControls are four special categories that are formatted with the square bracket ([]) to indicate they are associated with special functionalities. 

However, the eventCtx parameter always supplies the unformatted category name for custEventType esriCEAddCategory even though they are enclosed in square brackets in the Customize dialog.

 

See Also

ICustomizationFilter Interface | esriCustomizationEvent Constants | IApplication.LockCustomization Method