SpreadsheetPattern(
     AutomationElement element,
     IUIAutomationSpreadsheetPattern spreadsheetPattern)
     : base(el: element)
 {
     this._spreadsheetPattern = spreadsheetPattern;
 }
예제 #2
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
예제 #3
0
 public SpreadsheetPattern(A11yElement e, IUIAutomationSpreadsheetPattern p) : base(e, PatternType.UIA_SpreadsheetPatternId)
 {
     Pattern = p;
 }
 internal static SpreadsheetPattern Wrap(
     AutomationElement element,
     IUIAutomationSpreadsheetPattern spreadsheetPattern)
 {
     return(new SpreadsheetPattern(element: element, spreadsheetPattern: spreadsheetPattern));
 }
예제 #5
0
 private SpreadsheetPattern(AutomationElement el, IUIAutomationSpreadsheetPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }