Provides access to members that control the TOC buddy.
The ITOCBuddy interface is used to get properties related to the ITOCControl::Buddy.
| Description | ||
|---|---|---|
![]() |
GetActiveView | Returns the underlying object implementing basic map and ActiveView. This is used to populate the TOC. |
![]() |
GetScale | Returns the scale of the supplied BasicMap, this allows for objects that do not support IMap. |
| CoClasses and Classes | Description |
|---|---|
| GlobeControl | ESRI GlobeControl |
| MapControl | ESRI MapControl |
| PageLayoutControl | ESRI PageLayoutControl |
| SceneControl | ESRI SceneControl |
When querying interface to ITOCBuddy in Visual Basic 6.0 the 'Object' property must be used. This is a known limitation of Visual Basic 6.0.
Dim pTOCBuddy As ITOCBuddy
Set pTOCBuddy = Form1.MapControl1.Object