TextRangeProviderWrapperGetAttributeValue - метод
Retrieves the value of the specified attribute across the text range.
Пространство имён: Tessa.UI.Automation.HelpersСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.1.4+115fce864fec7bf37ea70396e6660596be991d3b
public Object GetAttributeValue(
int attribute
)
Public Function GetAttributeValue (
attribute As Integer
) As Object
public:
virtual Object^ GetAttributeValue(
int attribute
) sealed
abstract GetAttributeValue :
attribute : int -> Object
override GetAttributeValue :
attribute : int -> Object
- attribute Int32
- The text attribute.
ObjectRetrieves 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) | ArgumentException | If the specified attribute is not valid. |