예제 #1
0
//        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);
        }
예제 #2
0
 public static IUiElement PerformSetDockPosition(this IUiElement element, classic.DockPosition dockPosition)
 {
     element.GetCurrentPattern <IDockPattern>(classic.DockPattern.Pattern).SetDockPosition(dockPosition);
     return(element);
 }