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


ICommandItem.Parent Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Framework)  

ICommandItem.Parent Property

The menu or toolbar that this command item currently resides on.

[Visual Basic .NET]
Public ReadOnly Property Parent As ICommandBar
[C#]
public ICommandBar Parent {get;}

Product Availability

Available with ArcGIS Desktop.

Description

Returns a reference to the CommandBar that this command item is on.

See Also

ICommandItem Interface | ICommandBar Interface