This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControl2 Interface (ArcObjects .NET 10.5 SDK) |
Provides access to members that control the TOCControl.
The ITOCControl2 interface provides additional members for tasks related to the TOCControl, such as enabling the drag and drop of layers and working with selected items.
Description | ||
---|---|---|
AboutBox | Displays a dialog of information about the TOCControl. | |
AboutBox | Displays a dialog of information about the TOCControl. | |
ActiveView | The ActiveView used to populate the TOCControl. | |
ActiveView | The ActiveView used to populate the TOCControl. | |
Appearance | The appearance of the TOCControl. | |
Appearance | The appearance of the TOCControl. | |
BorderStyle | The border style of the TOCControl. | |
BorderStyle | The border style of the TOCControl. | |
Buddy | The object whose ActiveView is used to populate the TOCControl. | |
Buddy | The object whose ActiveView is used to populate the TOCControl. | |
CustomProperty | A property to associate data with a control. | |
CustomProperty | A property to associate data with a control. | |
Enabled | Indicates whether the TOCControl can respond to user generated events. | |
Enabled | Indicates whether the TOCControl can respond to user generated events. | |
EnableLayerDragDrop | Indicates if layers can be dragged and dropped in the control. | |
GetSelectedItem | Returns the selected item in the TOCControl. | |
HitTest | Returns the item in the TOCControl at the specified coordinates. | |
HitTest | Returns the item in the TOCControl at the specified coordinates. | |
hWnd | Handle to the window associated with the TOCControl. | |
hWnd | Handle to the window associated with the TOCControl. | |
KeyIntercept | A property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values. | |
KeyIntercept | A property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values. | |
LabelEdit | Label editing state. | |
LabelEdit | Label editing state. | |
LayerVisibilityEdit | Layer visibility editing state. | |
LayerVisibilityEdit | Layer visibility editing state. | |
MouseIcon | Custom mouse icon used if MousePointer is 99. | |
MouseIcon | Custom mouse icon used if MousePointer is 99. | |
MousePointer | The mouse pointer displayed over the TOCControl. | |
MousePointer | The mouse pointer displayed over the TOCControl. | |
Object | A property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment. | |
Object | A property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment. | |
SelectItem | Sets the selected item in the TOCControl. | |
SetActiveView | Sets the ActiveView used to populate the TOCControl. | |
SetActiveView | Sets the ActiveView used to populate the TOCControl. | |
SetBuddyControl | Sets a control to be a buddy of the toolbar, this control must support ITOCBuddy. | |
SetBuddyControl | Sets a control to be a buddy of the toolbar, this control must support ITOCBuddy. | |
Update | Updates the contents of the TOCControl to match its ActiveView. | |
Update | Updates the contents of the TOCControl to match its ActiveView. |
CoClasses and Classes | Description |
---|---|
TOCControl | Esri TOCControl |
When querying interface to ITOCControl2 in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.
ITOCControl2 tocControl=axTOCControl1.Object as ITOCControl2;
When querying interface to ITOCControl2 in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.
Dim tocControl As ITOCControl2=AxTOCControl1.Object