Share via


IUIAutomationDockPattern::SetDockPosition Method

Sets the dock position of the Microsoft UI Automation element.

Syntax

HRESULT SetDockPosition(      
    DockPosition dockPos
);

Parameters

  • dockPos
    [in] A value from the DockPosition enumerated type specifying the dock position.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationDockPattern::CurrentDockPosition