TextRangeProviderWrapperGetAttributeValue - метод

Retrieves the value of the specified attribute across the text range.

Definition

Пространство имён: Tessa.UI.Automation.Helpers
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
C#
public Object GetAttributeValue(
	int attribute
)

Параметры

attribute  Int32
The text attribute.

Возвращаемое значение

Object
Retrieves an object representing the value of the specified attribute. For example, GetAttributeValue(TextPattern.FontNameAttribute) would return a string that represents the font name of the text range while GetAttributeValue(TextPattern.IsItalicAttribute) would return a value of type Boolean. Returns MixedAttributeValue if the value of the specified attribute varies over the text range. Returns NotSupported if the specified attribute is not supported by the provider or the control.

Реализации

ITextRangeProviderGetAttributeValue(Int32)

Исключения

ArgumentExceptionIf the specified attribute is not valid.

См. также