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


ICommandBar.Dock Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

ICommandBar.Dock Method

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
);

Product Availability

Available with ArcGIS Desktop.

Description

 

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]

 

Remarks

Use the esriDockFlags constants to specify whether this command bar is visible, floating, or where it is docked on the application.

See Also

ICommandBar Interface | esriDockFlags Constants