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