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