AutomationProperties 类

定义

包含提供给辅助功能服务的缩写 UI 和详细 UI。

public ref class AutomationProperties
public class AutomationProperties
type AutomationProperties = class
Public Class AutomationProperties
继承
AutomationProperties

构造函数

AutomationProperties()

包含提供给辅助功能服务的缩写 UI 和详细 UI。

字段

ExcludedWithChildrenProperty

ExcludedWithChildren可绑定属性。

HelpTextProperty
已过时.

HelpText可绑定属性。

IsInAccessibleTreeProperty

IsInAccessibleTree可绑定属性。

LabeledByProperty
已过时.

LabeledBy可绑定属性。

NameProperty
已过时.

Name可绑定属性。

方法

GetExcludedWithChildren(BindableObject)

包含提供给辅助功能服务的缩写 UI 和详细 UI。

GetHelpText(BindableObject)

返回可绑定对象的帮助文本(如果有)。

GetIsInAccessibleTree(BindableObject)

获取一个可以为 null 的布尔值,该值指示该可绑定对象是否可用于辅助功能系统。

GetLabeledBy(BindableObject)

如果 bindable 自己不带标签或 UI 中的其他元素对其进行描述,则返回标签为 bindable 的元素。

GetName(BindableObject)

返回该元素的介绍性短名称(由开发者指定),例如“进度指示器”或“按钮”。

SetExcludedWithChildren(BindableObject, Nullable<Boolean>)

包含提供给辅助功能服务的缩写 UI 和详细 UI。

SetHelpText(BindableObject, String)

设置 bindable 的帮助文本。

SetIsInAccessibleTree(BindableObject, Nullable<Boolean>)

设置一个布尔值,该值指示该可绑定对象是否可用于辅助功能系统。

SetLabeledBy(BindableObject, VisualElement)

设置另一个元素,例如将 Label 设为 bindable 的标签。

SetName(BindableObject, String)

设置该元素的介绍性短名称(由开发者指定),例如“进度指示器”或“按钮”。

适用于