// private UiaDockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern) // { // this._hPattern = hPattern; // this._cached = cached; // } public virtual void SetDockPosition(classic.DockPosition dockPosition) { // UiaCoreApi.DockPattern_SetDockPosition(this._hPattern, dockPosition); _dockPattern.SetDockPosition(dockPosition); }
public static IUiElement PerformSetDockPosition(this IUiElement element, classic.DockPosition dockPosition) { element.GetCurrentPattern <IDockPattern>(classic.DockPattern.Pattern).SetDockPosition(dockPosition); return(element); }