语言

AccessibilityNodeInfo.RemoveLabeledBy 方法

定义

重载

名称 说明
RemoveLabeledBy(View)

删除标签。

RemoveLabeledBy(View, Int32)

删除一个标签,该标签是给定 root的虚拟后代。

RemoveLabeledBy(View)

删除标签。

[Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;)Z", "GetRemoveLabeledBy_Landroid_view_View_Handler", ApiSince=36)]
public virtual bool RemoveLabeledBy(Android.Views.View label);
[<Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;)Z", "GetRemoveLabeledBy_Landroid_view_View_Handler", ApiSince=36)>]
abstract member RemoveLabeledBy : Android.Views.View -> bool
override this.RemoveLabeledBy : Android.Views.View -> bool

参数

label
View

用作此节点标签的节点。

返回

如果标签存在,则为 true

特性

例外

如果此节点已密封。

注解

删除标签。 如果之前未将标签添加到节点,则调用此方法不起作用。

注意:无法从 AccessibilityService 调用。 在传递到 AccessibilityService 之前,此类是不可变的。

Android 参考。android.view.accessibility.AccessibilityNodeInfo.removeLabeledBy

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

RemoveLabeledBy(View, Int32)

删除一个标签,该标签是给定 root的虚拟后代。

[Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;I)Z", "GetRemoveLabeledBy_Landroid_view_View_IHandler", ApiSince=36)]
public virtual bool RemoveLabeledBy(Android.Views.View root, int virtualDescendantId);
[<Android.Runtime.Register("removeLabeledBy", "(Landroid/view/View;I)Z", "GetRemoveLabeledBy_Landroid_view_View_IHandler", ApiSince=36)>]
abstract member RemoveLabeledBy : Android.Views.View * int -> bool
override this.RemoveLabeledBy : Android.Views.View * int -> bool

参数

root
View

虚拟子树的根。

virtualDescendantId
Int32

用作此节点标签的虚拟节点的 ID。

返回

如果标签存在,则为 true

特性

例外

如果此节点已密封。

注解

删除一个标签,该标签是给定根的虚拟后代。 如果 virtualDescendantId View.NO_ID根设置为标签。 如果之前未将标签添加到节点,则调用此方法不起作用。

Android 参考。android.view.accessibility.AccessibilityNodeInfo.removeLabeledBy

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于