Share via


ITextInput 介面

定義

表示可接受鍵盤輸入的檢視。

public interface class ITextInput : Microsoft::Maui::IPlaceholder, Microsoft::Maui::IText
public interface ITextInput : Microsoft.Maui.IPlaceholder, Microsoft.Maui.IText
type ITextInput = interface
    interface IText
    interface ITextStyle
    interface IPlaceholder
Public Interface ITextInput
Implements IPlaceholder, IText
衍生
實作

屬性

CharacterSpacing

取得文字字元之間的間距。

(繼承來源 ITextStyle)
CursorPosition

取得或設定資料指標的位置。

Font

取得字型系列、樣式和字型的大小。

(繼承來源 ITextStyle)
IsReadOnly

取得值,指出檢視是否為唯讀。

IsSpellCheckEnabled

取得值,這個值會控制拼字檢查是否開啟或關閉。

IsTextPredictionEnabled

取得值,這個值會控制文字預測和自動文字更正是否開啟或關閉。

Keyboard

取得鍵盤輸入類型。

MaxLength

取得輸入允許的最大長度。

Placeholder

取得佔位元或提示文字。

(繼承來源 IPlaceholder)
PlaceholderColor

取得或設定佔位元文字色彩。

(繼承來源 IPlaceholder)
SelectionLength

取得選取範圍的長度。

Text

取得或設定文字。

TextColor

取得文字色彩。

(繼承來源 ITextStyle)

擴充方法

UpdateText(ITextInput, String)

表示可接受鍵盤輸入的檢視。

HideSoftInputAsync(ITextInput, CancellationToken)

如果目前顯示虛輸入窗格,這會嘗試隱藏它。

IsSoftInputShowing(ITextInput)

檢查平臺目前是否顯示虛輸入窗格

ShowSoftInputAsync(ITextInput, CancellationToken)

如果目前隱藏虛輸入窗格,這會嘗試顯示它。

適用於