This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandBar Interface > ICommandBar.Dock Method (ArcObjects .NET 10.5 SDK) |
Docks or undocks this commandbar.
[Visual Basic .NET] Public Sub Dock ( _ ByVal dockFlags As esriDockFlags, _ [ByVal referenceBar As ICommandBar] _ )
[C#] public void Dock ( esriDockFlags dockFlags, ICommandBar referenceBar );
dockFlags specifies whether the commandbar is docked or where it is docked. Use one of the esriDockFlags constants.
referenceBar is an ICommandBar object that is to be used as a location reference. [Optional]