共用方式為


AccessibilityNodeInfo.ActionSetText 欄位

定義

警告

This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.

設定節點文字的動作。

[Android.Runtime.Register("ACTION_SET_TEXT")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)]
public const Android.Views.Accessibility.Action ActionSetText = 2097152;
[<Android.Runtime.Register("ACTION_SET_TEXT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)>]
val mutable ActionSetText : Android.Views.Accessibility.Action

欄位值

Value = 2097152

實作

屬性

備註

設定節點文字的動作。 在沒有自變數的情況下執行動作,使用 null 或 空白 CharSequence 會清除文字。 此動作也會將游標放在文字結尾。

<strong>Arguments:</strong br>><strong Example:</strong><pre><p> Bundle arguments = new Bundle(); arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "android"); info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments); >#ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE<</pre>

android.view.accessibility.AccessibilityNodeInfo.ACTION_SET_TEXTJava 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於