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


IToolbarPalette.ActiveItem Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IToolbarPalette.ActiveItem Property

The palette item currently displayed on the ToolbarControl.

[Visual Basic .NET]
Public ReadOnly Property ActiveItem As IToolbarItem
[C#]
public IToolbarItem ActiveItem {get;}
[C++]
HRESULT get_ActiveItem(
  IToolbarItem** ppToolbarItem
);
[C++]

Parameters ppToolbarItem [out, retval]
ppToolbarItem is a parameter of type IToolbarItem

Product Availability

Available with ArcGIS Engine.

Description

The item on the ToolbarPalette that is displayed on the ToolbarControl. By default this is the first item on the ToolbarPalette with an index of 0.

The ActiveItem will be automatically set to the IToolbarControl::CurrentTool when a tool on the ToolbarPalette is set as the current tool.

See Also

IToolbarPalette Interface