1 instantiation of TextPattern
UIAutomationClient (1)
System\Windows\Automation\TextPattern.cs (1)
293return new TextPattern(el, hPattern);
116 references to TextPattern
UIAutomationClient (42)
MS\Internal\Automation\Schema.cs (33)
467new AutomationPatternInfo( TextPattern.Pattern, null, new WrapObjectClientSide(TextPattern.Wrap) ), 479new AutomationAttributeInfo( null, TextPattern.AnimationStyleAttribute, typeof(AnimationStyle) ), 480new AutomationAttributeInfo( null, TextPattern.BackgroundColorAttribute, typeof(int) ), 481new AutomationAttributeInfo( null, TextPattern.BulletStyleAttribute, typeof(BulletStyle) ), 482new AutomationAttributeInfo( null, TextPattern.CapStyleAttribute, typeof(CapStyle) ), 483new AutomationAttributeInfo( convertToCultureInfo, TextPattern.CultureAttribute, typeof(CultureInfo) ), 484new AutomationAttributeInfo( null, TextPattern.FontNameAttribute, typeof(string) ), 485new AutomationAttributeInfo( null, TextPattern.FontSizeAttribute, typeof(double) ), 486new AutomationAttributeInfo( null, TextPattern.FontWeightAttribute, typeof(int) ), 487new AutomationAttributeInfo( null, TextPattern.ForegroundColorAttribute, typeof(int) ), 488new AutomationAttributeInfo( null, TextPattern.HorizontalTextAlignmentAttribute, typeof(HorizontalTextAlignment) ), 489new AutomationAttributeInfo( null, TextPattern.IndentationFirstLineAttribute, typeof(double) ), 490new AutomationAttributeInfo( null, TextPattern.IndentationLeadingAttribute, typeof(double) ), 491new AutomationAttributeInfo( null, TextPattern.IndentationTrailingAttribute, typeof(double) ), 492new AutomationAttributeInfo( null, TextPattern.IsHiddenAttribute, typeof(bool) ), 493new AutomationAttributeInfo( null, TextPattern.IsItalicAttribute, typeof(bool) ), 494new AutomationAttributeInfo( null, TextPattern.IsReadOnlyAttribute, typeof(bool) ), 495new AutomationAttributeInfo( null, TextPattern.IsSubscriptAttribute, typeof(bool) ), 496new AutomationAttributeInfo( null, TextPattern.IsSuperscriptAttribute, typeof(bool) ), 497new AutomationAttributeInfo( null, TextPattern.MarginBottomAttribute, typeof(double) ), 498new AutomationAttributeInfo( null, TextPattern.MarginLeadingAttribute, typeof(double) ), 499new AutomationAttributeInfo( null, TextPattern.MarginTopAttribute, typeof(double) ), 500new AutomationAttributeInfo( null, TextPattern.MarginTrailingAttribute, typeof(double) ), 501new AutomationAttributeInfo( null, TextPattern.OutlineStylesAttribute, typeof(OutlineStyles) ), 502new AutomationAttributeInfo( null, TextPattern.OverlineColorAttribute, typeof(int) ), 503new AutomationAttributeInfo( null, TextPattern.OverlineStyleAttribute, typeof(TextDecorationLineStyle) ), 504new AutomationAttributeInfo( null, TextPattern.StrikethroughColorAttribute, typeof(int) ), 505new AutomationAttributeInfo( null, TextPattern.StrikethroughStyleAttribute, typeof(TextDecorationLineStyle) ), 506new AutomationAttributeInfo( null, TextPattern.TabsAttribute, typeof(double[]) ), 507new AutomationAttributeInfo( null, TextPattern.TextFlowDirectionsAttribute, typeof(FlowDirections) ), 508new AutomationAttributeInfo( null, TextPattern.UnderlineColorAttribute, typeof(int) ), 509new AutomationAttributeInfo( null, TextPattern.UnderlineStyleAttribute, typeof(TextDecorationLineStyle) ),
System\Windows\Automation\Text\TextRange.cs (7)
70internal TextPatternRange(SafeTextRangeHandle hTextRange, TextPattern pattern) 79internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 88internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 206if (attribute == TextPattern.CultureAttribute) 431public TextPattern TextPattern 468if (!TextPattern.Compare(_pattern, range._pattern)) 495TextPattern _pattern;
System\Windows\Automation\TextPattern.cs (2)
297static internal bool Compare(TextPattern t1, TextPattern t2)
UIAutomationClientsideProviders (74)
MS\Internal\AutomationProxies\EventManager.cs (9)
481ITextProvider textProvider = el.GetPatternProvider(TextPattern.Pattern) as ITextProvider; 498AutomationInteropProvider.RaiseAutomationEvent(TextPattern.TextSelectionChangedEvent, el, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 503AutomationInteropProvider.RaiseAutomationEvent(TextPattern.TextSelectionChangedEvent, el, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 513TextPattern.TextSelectionChangedEvent, el, 514new AutomationEventArgs(TextPattern.TextSelectionChangedEvent)); 552_objectIdClient.Add(TextPattern.TextSelectionChangedEvent, new RaiseEvent(HandleTextSelectionChangedEvent)); 566_objectIdCaret.Add(TextPattern.TextSelectionChangedEvent, new RaiseEvent(HandleTextSelectionChangedEvent));
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
1337new CtrlTypePatterns(ControlType.Document, TextPattern.Pattern),
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
472else if (idEvent == TextPattern.TextSelectionChangedEvent)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
190else if (iid == TextPattern.Pattern && _type != EditboxType.Password)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (11)
625if (attribute == TextPattern.BackgroundColorAttribute) 629else if (attribute == TextPattern.CapStyleAttribute) 633else if (attribute == TextPattern.FontNameAttribute) 637else if (attribute == TextPattern.FontSizeAttribute) 641else if (attribute == TextPattern.FontWeightAttribute) 645else if (attribute == TextPattern.ForegroundColorAttribute) 649else if (attribute == TextPattern.HorizontalTextAlignmentAttribute) 653else if (attribute == TextPattern.IsItalicAttribute) 657else if (attribute == TextPattern.IsReadOnlyAttribute) 661else if (attribute == TextPattern.StrikethroughStyleAttribute) 665else if (attribute == TextPattern.UnderlineStyleAttribute)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
130if (iid == TextPattern.Pattern && _type != WindowsEditBox.EditboxType.Password && IsDocument()) 771TextPattern.TextSelectionChangedEvent, 772this, new AutomationEventArgs(TextPattern.TextSelectionChangedEvent));
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (48)
104if (attribute == TextPattern.BulletStyleAttribute 105|| attribute == TextPattern.HorizontalTextAlignmentAttribute 106|| attribute == TextPattern.IndentationFirstLineAttribute 107|| attribute == TextPattern.IndentationLeadingAttribute 108|| attribute == TextPattern.IndentationTrailingAttribute 109|| attribute == TextPattern.TabsAttribute) 582if (attribute == TextPattern.AnimationStyleAttribute) { rval = GetAnimationStyle(range.Font); } 583else if (attribute == TextPattern.BackgroundColorAttribute) { rval = GetBackgroundColor(range.Font); } 584else if (attribute == TextPattern.BulletStyleAttribute) { rval = GetBulletStyle(range.Para); } 585else if (attribute == TextPattern.CapStyleAttribute) { rval = GetCapStyle(range.Font); } 588else if (attribute == TextPattern.FontNameAttribute) { rval = GetFontName(range); } 589else if (attribute == TextPattern.FontSizeAttribute) { rval = GetFontSize(range.Font); } 590else if (attribute == TextPattern.FontWeightAttribute) { rval = GetFontWeight(range.Font); } 591else if (attribute == TextPattern.ForegroundColorAttribute) { rval = GetForegroundColor(range.Font); } 593else if (attribute == TextPattern.HorizontalTextAlignmentAttribute) { rval = GetHorizontalTextAlignment(range.Para); } 594else if (attribute == TextPattern.IndentationFirstLineAttribute) { rval = GetIndentationFirstLine(range.Para); } 595else if (attribute == TextPattern.IndentationLeadingAttribute) { rval = GetIndentationLeading(range.Para); } 596else if (attribute == TextPattern.IndentationTrailingAttribute) { rval = GetIndentationTrailing(range.Para); } 597else if (attribute == TextPattern.IsHiddenAttribute) { rval = GetHidden(range.Font); } 598else if (attribute == TextPattern.IsItalicAttribute) { rval = GetItalic(range.Font); } 599else if (attribute == TextPattern.IsReadOnlyAttribute) { rval = GetReadOnly(range.Font); } 600else if (attribute == TextPattern.IsSubscriptAttribute) { rval = GetSubscript(range.Font); } 601else if (attribute == TextPattern.IsSuperscriptAttribute) { rval = GetSuperscript(range.Font); } 611else if (attribute == TextPattern.OutlineStylesAttribute) { rval = GetOutlineStyles(range.Font); } 619else if (attribute == TextPattern.StrikethroughStyleAttribute) { rval = GetStrikethroughStyle(range.Font); } 620else if (attribute == TextPattern.TabsAttribute) { rval = GetTabs(range.Para); } 623else if (attribute == TextPattern.UnderlineStyleAttribute) { rval = GetUnderlineStyle(range.Font); } 638return TextPattern.MixedAttributeValue; 659return TextPattern.MixedAttributeValue; 681return TextPattern.MixedAttributeValue; 703return TextPattern.MixedAttributeValue; 753return TextPattern.MixedAttributeValue; 767return TextPattern.MixedAttributeValue; 780return TextPattern.MixedAttributeValue; 800return TextPattern.MixedAttributeValue; 822return TextPattern.MixedAttributeValue; 836return TextPattern.MixedAttributeValue; 849return TextPattern.MixedAttributeValue; 862return TextPattern.MixedAttributeValue; 875return TextPattern.MixedAttributeValue; 888return TextPattern.MixedAttributeValue; 905return TextPattern.MixedAttributeValue; 931return TextPattern.MixedAttributeValue; 944return TextPattern.MixedAttributeValue; 957return TextPattern.MixedAttributeValue; 970return TextPattern.MixedAttributeValue; 983return TextPattern.MixedAttributeValue; 1009return TextPattern.MixedAttributeValue;