語言

ViewStructure.SetMaxTextLength(Int32) 方法

定義

設定與此視圖相關文本的最大長度(若支援時)。

[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於