語言

AssistStructure.ViewNode.MaxTextLength 屬性

定義

回傳與該節點相關聯的文字最大長度,或 -1 若節點不支援或未設定,則回傳文字的最大長度。

public virtual int MaxTextLength { [Android.Runtime.Register("getMaxTextLength", "()I", "GetGetMaxTextLengthHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getMaxTextLength", "()I", "GetGetMaxTextLengthHandler", ApiSince=28)>]
member this.MaxTextLength : int

屬性值

屬性

備註

回傳與該節點相關聯的文字最大長度,或 -1 若節點不支援或未設定,則回傳文字的最大長度。 如果文字長度未設定,系統可能會設定預設值。

這只在自動填充時才有意義 AssistStructure ,不是輔助用途。

Java 文件 android.app.assist.AssistStructure.ViewNode.getMaxTextLength()。

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

適用於