언어

AccessibilityNodeInfo.GetSelection Method

Definition

Gets the extended selection, which is a representation of selection that spans multiple nodes that exist within the subtree of the node defining selection.

[Android.Runtime.Register("getSelection", "()Landroid/view/accessibility/AccessibilityNodeInfo$Selection;", "GetGetSelectionHandler", ApiSince=36)]
public virtual Android.Views.Accessibility.AccessibilityNodeInfo.Selection? GetSelection();
[<Android.Runtime.Register("getSelection", "()Landroid/view/accessibility/AccessibilityNodeInfo$Selection;", "GetGetSelectionHandler", ApiSince=36)>]
abstract member GetSelection : unit -> Android.Views.Accessibility.AccessibilityNodeInfo.Selection
override this.GetSelection : unit -> Android.Views.Accessibility.AccessibilityNodeInfo.Selection

Returns

The extended selection within the node's subtree, or null if no selection exists.

Attributes

Remarks

Gets the extended selection, which is a representation of selection that spans multiple nodes that exist within the subtree of the node defining selection.

Note: Nodes that are candidates to contain a selection should return true from isFocusable() and isFocused(). The start and end SelectionPositions of this Selection should exist within this node or its descendants.

Android reference for android.view.accessibility.AccessibilityNodeInfo.getSelection.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to