ExpandCollapsePattern( AutomationElement element, IUIAutomationExpandCollapsePattern expandCollapsePattern) : base(el: element) { this._expandCollapsePattern = expandCollapsePattern; }
protected override void Dispose(bool disposing) { if (Pattern != null) { Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
public ExpandCollapsePattern(A11yElement e, IUIAutomationExpandCollapsePattern p) : base(e, PatternType.UIA_ExpandCollapsePatternId) { // UIA sometimes throws a COMException. If it does, exclude it // from telemetry ExcludingExceptionWrapper.ExecuteWithExcludedExceptionConversion(typeof(COMException), () => { Pattern = p; PopulateProperties(); }); }
private ExpandCollapsePattern(IUIAutomationExpandCollapsePattern pattern) { _pattern = pattern; }
public UiAutomationExpandCollapseHint(IntPtr owningWindow, IUIAutomationExpandCollapsePattern expandCollapsePattern, Rect boundingRectangle) : base(owningWindow, boundingRectangle) { _expandCollapsePattern = expandCollapsePattern; }
public static void xtExpand(this IUIAutomationElement element) { _ExpandCollapsePattern = (IUIAutomationExpandCollapsePattern)element.GetCurrentPattern(UIA_PatternIds.UIA_ExpandCollapsePatternId); _ExpandCollapsePattern.Expand(); }
internal static ExpandCollapsePattern Wrap( AutomationElement element, IUIAutomationExpandCollapsePattern expandCollapsePattern) { return(new ExpandCollapsePattern(element: element, expandCollapsePattern: expandCollapsePattern)); }
public static IUIAutomationElement xtCollapse(this IUIAutomationElement element) { _ExpandCollapsePattern = (IUIAutomationExpandCollapsePattern)element.GetCurrentPattern(UIA_PatternIds.UIA_ExpandCollapsePatternId); _ExpandCollapsePattern.Collapse(); return(element); }
public static ExpandCollapseState xtGetExpandCollapseState(this IUIAutomationElement element) { _ExpandCollapsePattern = (IUIAutomationExpandCollapsePattern)element.GetCurrentPattern(UIA_PatternIds.UIA_ExpandCollapsePatternId); return(_ExpandCollapsePattern.CurrentExpandCollapseState); }
private ExpandCollapsePattern(AutomationElement el, IUIAutomationExpandCollapsePattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }
public ExpandCollapsePattern(A11yElement e, IUIAutomationExpandCollapsePattern p) : base(e, PatternType.UIA_ExpandCollapsePatternId) { Pattern = p; PopulateProperties(); }