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


ICommandItem.Parent Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Parent Property
ArcGIS Developer Help

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