語言

ViewStructure.SetText 方法

定義

多載

名稱 Description
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

參數

text
ICharSequence

Java。Lang.ICharSequence 用於文字的值。

selectionStart
Int32

System.Int32 值用於選擇啟動。

selectionEnd
Int32

用於選擇的 System.Int32 值結束。

屬性

備註

但 #setText(CharSequence) 同時有主動選擇,從 <var>selectionStart</var> 延伸到 <var>selectionEnd</var>。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

用於文字的 System.String 值。

selectionStart
Int32

System.Int32 值用於選擇啟動。

selectionEnd
Int32

用於選擇的 System.Int32 值結束。

備註

但 #setText(CharSequence) 同時有主動選擇,從 <var>selectionStart</var> 延伸到 <var>selectionEnd</var>。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於