AutomationTextAttribute 类

定义

标识 UI 自动化文本特性。Identifies UI Automation text attributes.

public ref class AutomationTextAttribute : System::Windows::Automation::AutomationIdentifier
public class AutomationTextAttribute : System.Windows.Automation.AutomationIdentifier
type AutomationTextAttribute = class
    inherit AutomationIdentifier
Public Class AutomationTextAttribute
Inherits AutomationIdentifier
继承
AutomationTextAttribute

注解

AutomationIdentifier派生。Derived from AutomationIdentifier.

UI 自动化UI Automation 支持的文本属性列表可在 TextPattern找到。The list of text attributes supported by UI 自动化UI Automation can be found at TextPattern.

AutomationTextAttribute 类实际上是抽象的,因为它没有构造函数,并且不能由应用程序实例化。The AutomationTextAttribute class is effectively abstract, as it has no constructor and cannot be instantiated by applications.

属性

Id

获取基础数值标识符。Gets the underlying numerical identifier.

(继承自 AutomationIdentifier)
ProgrammaticName

获取注册的编程名称。Gets the registered programmatic name.

(继承自 AutomationIdentifier)

方法

CompareTo(Object)

将此 AutomationIdentifier 与其他 AutomationIdentifier 相比较。Compares this AutomationIdentifier with another AutomationIdentifier.

(继承自 AutomationIdentifier)
Equals(Object)

返回一个值,该值指示提供的 AutomationIdentifier 是否等效于此 AutomationIdentifierReturns a value indicating whether the supplied AutomationIdentifier is equivalent to this AutomationIdentifier.

(继承自 AutomationIdentifier)
GetHashCode()

返回此 UI 自动化UI Automation标识符的哈希代码。Returns the hash code for this UI 自动化UI Automation identifier.

(继承自 AutomationIdentifier)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
LookupById(Int32)

检索一个封装了指定数值标识符的 AutomationTextAttributeRetrieves a AutomationTextAttribute that encapsulates a specified numerical identifier.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅