internal BasePattern(AutomationElement el, SafePatternHandle hPattern) { Debug.Assert(el != null); _el = el; _hPattern = hPattern; }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { if (hPattern.IsInvalid) { throw new InvalidOperationException(SR.Get(SRID.CantPrefetchTextPattern)); } return(new TextPattern(el, hPattern)); }
internal TextPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { Debug.Assert(el != null); Debug.Assert(!hPattern.IsInvalid); _hPattern = hPattern; _element = el; }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new VirtualizedItemPattern(el, hPattern)); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new ItemContainerPattern(el, hPattern)); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern, cached) { _hPattern = hPattern; }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new WindowPattern(el, hPattern, cached)); }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new SynchronizedInputPattern(el, hPattern)); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern) { _hPattern = hPattern; _cached = cached; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private InvokePattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern, cached) { // Done }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern) { _hPattern = hPattern; _cached = cached; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new TogglePattern(el, hPattern, cached)); }
//------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return(new TableItemPattern(el, hPattern, cached)); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern) { _hPattern = hPattern; _cached = cached; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; }