共用方式為


ViewStructure.SetText 方法

定義

多載

SetText(ICharSequence, Int32, Int32)

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

SetText(String, Int32, Int32)

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

SetText(ICharSequence, Int32, Int32)

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;II)V", "GetSetText_Ljava_lang_CharSequence_IIHandler", ApiSince=23)]
public abstract void SetText (Java.Lang.ICharSequence? text, int selectionStart, int selectionEnd);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;II)V", "GetSetText_Ljava_lang_CharSequence_IIHandler", ApiSince=23)>]
abstract member SetText : Java.Lang.ICharSequence * int * int -> unit

參數

selectionStart
Int32
selectionEnd
Int32
屬性

備註

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

android.view.ViewStructure.setText(java.lang.CharSequence, int, int)Java 檔。

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

適用於

SetText(String, Int32, Int32)

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

public void SetText (string? text, int selectionStart, int selectionEnd);
member this.SetText : string * int * int -> unit

參數

text
String
selectionStart
Int32
selectionEnd
Int32

備註

和 一樣 #setText(CharSequence) ,使用中的選取範圍會從 <var>selectionStart</var> 延伸至 <var>selectionEnd</var>。

android.view.ViewStructure.setText(java.lang.CharSequence, int, int)Java 檔。

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

適用於