ViewStructure.SetText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetText(ICharSequence, Int32, Int32) |
但 |
| SetText(String, Int32, Int32) |
但 |
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。