72 references to UIA_TEXTATTRIBUTE_ID
System.Windows.Forms.Primitives (26)
System\Windows\Forms\Automation\UiaTextRange.cs (14)
270
HRESULT ITextRangeProvider.Interface.FindAttribute(
UIA_TEXTATTRIBUTE_ID
attributeId, VARIANT val, BOOL backward, ITextRangeProvider** pRetVal)
316
HRESULT ITextRangeProvider.Interface.GetAttributeValue(
UIA_TEXTATTRIBUTE_ID
attributeId, VARIANT* pRetVal)
683
private VARIANT GetAttributeValue(
UIA_TEXTATTRIBUTE_ID
textAttributeIdentifier)
687
UIA_TEXTATTRIBUTE_ID
.UIA_BackgroundColorAttributeId => GetBackgroundColor(),
688
UIA_TEXTATTRIBUTE_ID
.UIA_CapStyleAttributeId => GetCapStyle(_provider.WindowStyle),
689
UIA_TEXTATTRIBUTE_ID
.UIA_FontNameAttributeId => GetFontName(_provider.Logfont),
690
UIA_TEXTATTRIBUTE_ID
.UIA_FontSizeAttributeId => GetFontSize(_provider.Logfont),
691
UIA_TEXTATTRIBUTE_ID
.UIA_FontWeightAttributeId => GetFontWeight(_provider.Logfont),
692
UIA_TEXTATTRIBUTE_ID
.UIA_ForegroundColorAttributeId => GetForegroundColor(),
693
UIA_TEXTATTRIBUTE_ID
.UIA_HorizontalTextAlignmentAttributeId => GetHorizontalTextAlignment(_provider.WindowStyle),
694
UIA_TEXTATTRIBUTE_ID
.UIA_IsItalicAttributeId => GetItalic(_provider.Logfont),
695
UIA_TEXTATTRIBUTE_ID
.UIA_IsReadOnlyAttributeId => GetReadOnly(),
696
UIA_TEXTATTRIBUTE_ID
.UIA_StrikethroughStyleAttributeId => GetStrikethroughStyle(_provider.Logfont),
697
UIA_TEXTATTRIBUTE_ID
.UIA_UnderlineStyleAttributeId => GetUnderlineStyle(_provider.Logfont),
Windows.Win32.ITextRangeProvider.g.cs (10)
206
private static winmdroot.Foundation.HRESULT FindAttribute(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal)
240
public unsafe winmdroot.UI.Accessibility.ITextRangeProvider* FindAttribute(winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward)
243
((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITextRangeProvider*)Unsafe.AsPointer(ref this), attributeId, val, backward, &__retVal).ThrowOnFailure();
294
private static winmdroot.Foundation.HRESULT GetAttributeValue(ITextRangeProvider* pThis, winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, winmdroot.System.Variant.VARIANT* pRetVal)
320
public winmdroot.System.Variant.VARIANT GetAttributeValue(winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId)
323
((delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((ITextRangeProvider*)Unsafe.AsPointer(ref this), attributeId, &__retVal).ThrowOnFailure();
750
internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.BOOL ,winmdroot.UI.Accessibility.ITextRangeProvider** ,winmdroot.Foundation.HRESULT> FindAttribute_8;
754
internal delegate *unmanaged [Stdcall]<ITextRangeProvider*,winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> GetAttributeValue_10;
832
unsafe winmdroot.Foundation.HRESULT FindAttribute(winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, winmdroot.System.Variant.VARIANT val, winmdroot.Foundation.BOOL backward, winmdroot.UI.Accessibility.ITextRangeProvider** pRetVal);
838
unsafe winmdroot.Foundation.HRESULT GetAttributeValue(winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, winmdroot.System.Variant.VARIANT* pRetVal);
Windows.Win32.UI_Accessibility_ITextRangeProvider_Extensions.g.cs (2)
43
/// <inheritdoc cref="winmdroot.UI.Accessibility.ITextRangeProvider.Interface.GetAttributeValue(winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
, winmdroot.System.Variant.VARIANT*)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT GetAttributeValue(this winmdroot.UI.Accessibility.ITextRangeProvider.Interface @this, winmdroot.UI.Accessibility.
UIA_TEXTATTRIBUTE_ID
attributeId, out winmdroot.System.Variant.VARIANT pRetVal)
System.Windows.Forms.Primitives.Tests (46)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (46)
401
Array textAttributeIdentifiers = Enum.GetValues(typeof(
UIA_TEXTATTRIBUTE_ID
));
403
foreach (
UIA_TEXTATTRIBUTE_ID
textAttributeIdentifier in textAttributeIdentifiers)
479
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_BackgroundColorAttributeId, (int)(uint)(COLORREF)PInvokeCore.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW) };
480
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_CapStyleAttributeId, (int)CapStyle.None };
481
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_FontNameAttributeId, "Segoe UI" };
482
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_FontSizeAttributeId, 9.0 };
483
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_FontWeightAttributeId, (int)FW.NORMAL };
484
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_ForegroundColorAttributeId, (int)(uint)default(COLORREF) };
485
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_HorizontalTextAlignmentAttributeId, (int)HorizontalTextAlignment.Left };
486
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsItalicAttributeId, false };
487
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsReadOnlyAttributeId, false };
488
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_StrikethroughStyleAttributeId, (int)TextDecorationLineStyle.None };
489
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_UnderlineStyleAttributeId, (int)TextDecorationLineStyle.None };
491
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_AnimationStyleAttributeId, UiaGetReservedNotSupportedValue() };
492
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_BulletStyleAttributeId, UiaGetReservedNotSupportedValue() };
493
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_CultureAttributeId, UiaGetReservedNotSupportedValue() };
494
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IndentationFirstLineAttributeId, UiaGetReservedNotSupportedValue() };
495
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IndentationLeadingAttributeId, UiaGetReservedNotSupportedValue() };
496
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IndentationTrailingAttributeId, UiaGetReservedNotSupportedValue() };
497
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsHiddenAttributeId, UiaGetReservedNotSupportedValue() };
498
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsSubscriptAttributeId, UiaGetReservedNotSupportedValue() };
499
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsSuperscriptAttributeId, UiaGetReservedNotSupportedValue() };
500
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_MarginBottomAttributeId, UiaGetReservedNotSupportedValue() };
501
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_MarginLeadingAttributeId, UiaGetReservedNotSupportedValue() };
502
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_MarginTopAttributeId, UiaGetReservedNotSupportedValue() };
503
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_MarginTrailingAttributeId, UiaGetReservedNotSupportedValue() };
504
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_OutlineStylesAttributeId, UiaGetReservedNotSupportedValue() };
505
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_OverlineColorAttributeId, UiaGetReservedNotSupportedValue() };
506
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_OverlineStyleAttributeId, UiaGetReservedNotSupportedValue() };
507
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_StrikethroughColorAttributeId, UiaGetReservedNotSupportedValue() };
508
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_TabsAttributeId, UiaGetReservedNotSupportedValue() };
509
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_TextFlowDirectionsAttributeId, UiaGetReservedNotSupportedValue() };
510
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_UnderlineColorAttributeId, UiaGetReservedNotSupportedValue() };
511
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_AnnotationTypesAttributeId, UiaGetReservedNotSupportedValue() };
512
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_AnnotationObjectsAttributeId, UiaGetReservedNotSupportedValue() };
513
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_StyleNameAttributeId, UiaGetReservedNotSupportedValue() };
514
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_StyleIdAttributeId, UiaGetReservedNotSupportedValue() };
515
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_LinkAttributeId, UiaGetReservedNotSupportedValue() };
516
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_IsActiveAttributeId, UiaGetReservedNotSupportedValue() };
517
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_SelectionActiveEndAttributeId, UiaGetReservedNotSupportedValue() };
518
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_CaretPositionAttributeId, UiaGetReservedNotSupportedValue() };
519
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_CaretBidiModeAttributeId, UiaGetReservedNotSupportedValue() };
520
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_LineSpacingAttributeId, UiaGetReservedNotSupportedValue() };
521
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_BeforeParagraphSpacingAttributeId, UiaGetReservedNotSupportedValue() };
522
yield return new object[] {
UIA_TEXTATTRIBUTE_ID
.UIA_AfterParagraphSpacingAttributeId, UiaGetReservedNotSupportedValue() };
527
internal void UiaTextRange_ITextRangeProvider_GetAttributeValue_Returns_Correct(
UIA_TEXTATTRIBUTE_ID
attributeId, object attributeValue)