Share via


IDockProvider::SetDockPosition Method

Docks the control within a docking container.

Syntax

HRESULT SetDockPosition(      
    DockPosition dockPosition
);

Parameters

  • dockPosition
    [in] A value from the DockPosition enumerated type that specifies the docking location, relative to the boundaries of the container and other elements within the container.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

A docking container is a control that allows the arrangement of child elements, both horizontally and vertically, relative to the boundaries of the docking container and other elements within the container.

See Also

UI Automation Providers Overview