ViewStructure.SetMaxTextLength(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定與此視圖相關文本的最大長度(若支援時)。
[Android.Runtime.Register("setMaxTextLength", "(I)V", "GetSetMaxTextLength_IHandler", ApiSince=28)]
public virtual void SetMaxTextLength(int maxLength);
[<Android.Runtime.Register("setMaxTextLength", "(I)V", "GetSetMaxTextLength_IHandler", ApiSince=28)>]
abstract member SetMaxTextLength : int -> unit
override this.SetMaxTextLength : int -> unit
參數
- maxLength
- Int32
System.Int32 值用於最大長度。
- 屬性
備註
設定與此視圖相關文本的最大長度(若支援時)。
只有當節點用於自動填充時才應該設定——用於輔助時會被忽略。
Java 文件 android.view.ViewStructure.setMaxTextLength(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。