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