1 instantiation of TextPattern
UIAutomationClient (1)
System\Windows\Automation\TextPattern.cs (1)
278return new TextPattern(el, hPattern);
116 references to TextPattern
UIAutomationClient (42)
MS\Internal\Automation\Schema.cs (33)
482new AutomationPatternInfo( TextPattern.Pattern, null, new WrapObjectClientSide(TextPattern.Wrap) ), 494new AutomationAttributeInfo( null, TextPattern.AnimationStyleAttribute, typeof(AnimationStyle) ), 495new AutomationAttributeInfo( null, TextPattern.BackgroundColorAttribute, typeof(int) ), 496new AutomationAttributeInfo( null, TextPattern.BulletStyleAttribute, typeof(BulletStyle) ), 497new AutomationAttributeInfo( null, TextPattern.CapStyleAttribute, typeof(CapStyle) ), 498new AutomationAttributeInfo( convertToCultureInfo, TextPattern.CultureAttribute, typeof(CultureInfo) ), 499new AutomationAttributeInfo( null, TextPattern.FontNameAttribute, typeof(string) ), 500new AutomationAttributeInfo( null, TextPattern.FontSizeAttribute, typeof(double) ), 501new AutomationAttributeInfo( null, TextPattern.FontWeightAttribute, typeof(int) ), 502new AutomationAttributeInfo( null, TextPattern.ForegroundColorAttribute, typeof(int) ), 503new AutomationAttributeInfo( null, TextPattern.HorizontalTextAlignmentAttribute, typeof(HorizontalTextAlignment) ), 504new AutomationAttributeInfo( null, TextPattern.IndentationFirstLineAttribute, typeof(double) ), 505new AutomationAttributeInfo( null, TextPattern.IndentationLeadingAttribute, typeof(double) ), 506new AutomationAttributeInfo( null, TextPattern.IndentationTrailingAttribute, typeof(double) ), 507new AutomationAttributeInfo( null, TextPattern.IsHiddenAttribute, typeof(bool) ), 508new AutomationAttributeInfo( null, TextPattern.IsItalicAttribute, typeof(bool) ), 509new AutomationAttributeInfo( null, TextPattern.IsReadOnlyAttribute, typeof(bool) ), 510new AutomationAttributeInfo( null, TextPattern.IsSubscriptAttribute, typeof(bool) ), 511new AutomationAttributeInfo( null, TextPattern.IsSuperscriptAttribute, typeof(bool) ), 512new AutomationAttributeInfo( null, TextPattern.MarginBottomAttribute, typeof(double) ), 513new AutomationAttributeInfo( null, TextPattern.MarginLeadingAttribute, typeof(double) ), 514new AutomationAttributeInfo( null, TextPattern.MarginTopAttribute, typeof(double) ), 515new AutomationAttributeInfo( null, TextPattern.MarginTrailingAttribute, typeof(double) ), 516new AutomationAttributeInfo( null, TextPattern.OutlineStylesAttribute, typeof(OutlineStyles) ), 517new AutomationAttributeInfo( null, TextPattern.OverlineColorAttribute, typeof(int) ), 518new AutomationAttributeInfo( null, TextPattern.OverlineStyleAttribute, typeof(TextDecorationLineStyle) ), 519new AutomationAttributeInfo( null, TextPattern.StrikethroughColorAttribute, typeof(int) ), 520new AutomationAttributeInfo( null, TextPattern.StrikethroughStyleAttribute, typeof(TextDecorationLineStyle) ), 521new AutomationAttributeInfo( null, TextPattern.TabsAttribute, typeof(double[]) ), 522new AutomationAttributeInfo( null, TextPattern.TextFlowDirectionsAttribute, typeof(FlowDirections) ), 523new AutomationAttributeInfo( null, TextPattern.UnderlineColorAttribute, typeof(int) ), 524new AutomationAttributeInfo( null, TextPattern.UnderlineStyleAttribute, typeof(TextDecorationLineStyle) ),
System\Windows\Automation\Text\TextRange.cs (7)
55internal TextPatternRange(SafeTextRangeHandle hTextRange, TextPattern pattern) 64internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 73internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 191if (attribute == TextPattern.CultureAttribute) 416public TextPattern TextPattern 453if (!TextPattern.Compare(_pattern, range._pattern)) 479private TextPattern _pattern;
System\Windows\Automation\TextPattern.cs (2)
282internal static bool Compare(TextPattern t1, TextPattern t2)
UIAutomationClientSideProviders (74)
MS\Internal\AutomationProxies\EventManager.cs (9)
467ITextProvider textProvider = el.GetPatternProvider(TextPattern.Pattern) as ITextProvider; 484AutomationInteropProvider.RaiseAutomationEvent(TextPattern.TextSelectionChangedEvent, el, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 489AutomationInteropProvider.RaiseAutomationEvent(TextPattern.TextSelectionChangedEvent, el, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 499TextPattern.TextSelectionChangedEvent, el, 500new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 538_objectIdClient.Add(TextPattern.TextSelectionChangedEvent, new RaiseEvent(HandleTextSelectionChangedEvent)); 552_objectIdCaret.Add(TextPattern.TextSelectionChangedEvent, new RaiseEvent(HandleTextSelectionChangedEvent));
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
1302new CtrlTypePatterns(ControlType.Document, TextPattern.Pattern),
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
447else if (idEvent == TextPattern.TextSelectionChangedEvent)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
171else if (iid == TextPattern.Pattern && _type != EditboxType.Password)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (11)
599if (attribute == TextPattern.BackgroundColorAttribute) 603else if (attribute == TextPattern.CapStyleAttribute) 607else if (attribute == TextPattern.FontNameAttribute) 611else if (attribute == TextPattern.FontSizeAttribute) 615else if (attribute == TextPattern.FontWeightAttribute) 619else if (attribute == TextPattern.ForegroundColorAttribute) 623else if (attribute == TextPattern.HorizontalTextAlignmentAttribute) 627else if (attribute == TextPattern.IsItalicAttribute) 631else if (attribute == TextPattern.IsReadOnlyAttribute) 635else if (attribute == TextPattern.StrikethroughStyleAttribute) 639else if (attribute == TextPattern.UnderlineStyleAttribute)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
113if (iid == TextPattern.Pattern && _type != WindowsEditBox.EditboxType.Password && IsDocument()) 728TextPattern.TextSelectionChangedEvent, 729this, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent));
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (48)
92if (attribute == TextPattern.BulletStyleAttribute 93|| attribute == TextPattern.HorizontalTextAlignmentAttribute 94|| attribute == TextPattern.IndentationFirstLineAttribute 95|| attribute == TextPattern.IndentationLeadingAttribute 96|| attribute == TextPattern.IndentationTrailingAttribute 97|| attribute == TextPattern.TabsAttribute) 555if (attribute == TextPattern.AnimationStyleAttribute) { rval = GetAnimationStyle(range.Font); } 556else if (attribute == TextPattern.BackgroundColorAttribute) { rval = GetBackgroundColor(range.Font); } 557else if (attribute == TextPattern.BulletStyleAttribute) { rval = GetBulletStyle(range.Para); } 558else if (attribute == TextPattern.CapStyleAttribute) { rval = GetCapStyle(range.Font); } 561else if (attribute == TextPattern.FontNameAttribute) { rval = GetFontName(range); } 562else if (attribute == TextPattern.FontSizeAttribute) { rval = GetFontSize(range.Font); } 563else if (attribute == TextPattern.FontWeightAttribute) { rval = GetFontWeight(range.Font); } 564else if (attribute == TextPattern.ForegroundColorAttribute) { rval = GetForegroundColor(range.Font); } 566else if (attribute == TextPattern.HorizontalTextAlignmentAttribute) { rval = GetHorizontalTextAlignment(range.Para); } 567else if (attribute == TextPattern.IndentationFirstLineAttribute) { rval = GetIndentationFirstLine(range.Para); } 568else if (attribute == TextPattern.IndentationLeadingAttribute) { rval = GetIndentationLeading(range.Para); } 569else if (attribute == TextPattern.IndentationTrailingAttribute) { rval = GetIndentationTrailing(range.Para); } 570else if (attribute == TextPattern.IsHiddenAttribute) { rval = GetHidden(range.Font); } 571else if (attribute == TextPattern.IsItalicAttribute) { rval = GetItalic(range.Font); } 572else if (attribute == TextPattern.IsReadOnlyAttribute) { rval = GetReadOnly(range.Font); } 573else if (attribute == TextPattern.IsSubscriptAttribute) { rval = GetSubscript(range.Font); } 574else if (attribute == TextPattern.IsSuperscriptAttribute) { rval = GetSuperscript(range.Font); } 584else if (attribute == TextPattern.OutlineStylesAttribute) { rval = GetOutlineStyles(range.Font); } 592else if (attribute == TextPattern.StrikethroughStyleAttribute) { rval = GetStrikethroughStyle(range.Font); } 593else if (attribute == TextPattern.TabsAttribute) { rval = GetTabs(range.Para); } 596else if (attribute == TextPattern.UnderlineStyleAttribute) { rval = GetUnderlineStyle(range.Font); } 611return TextPattern.MixedAttributeValue; 632return TextPattern.MixedAttributeValue; 654return TextPattern.MixedAttributeValue; 676return TextPattern.MixedAttributeValue; 726return TextPattern.MixedAttributeValue; 740return TextPattern.MixedAttributeValue; 753return TextPattern.MixedAttributeValue; 773return TextPattern.MixedAttributeValue; 795return TextPattern.MixedAttributeValue; 809return TextPattern.MixedAttributeValue; 822return TextPattern.MixedAttributeValue; 835return TextPattern.MixedAttributeValue; 848return TextPattern.MixedAttributeValue; 861return TextPattern.MixedAttributeValue; 878return TextPattern.MixedAttributeValue; 904return TextPattern.MixedAttributeValue; 917return TextPattern.MixedAttributeValue; 930return TextPattern.MixedAttributeValue; 943return TextPattern.MixedAttributeValue; 956return TextPattern.MixedAttributeValue; 982return TextPattern.MixedAttributeValue;