TextBox.IsTextPredictionEnabled 屬性

定義

取得或設定值,這個值會決定是否應該為此 TextBox 啟用文字預測功能 (「自動完成」) 。

public:
 property bool IsTextPredictionEnabled { bool get(); void set(bool value); };
bool IsTextPredictionEnabled();

void IsTextPredictionEnabled(bool value);
public bool IsTextPredictionEnabled { get; set; }
var boolean = textBox.isTextPredictionEnabled;
textBox.isTextPredictionEnabled = boolean;
Public Property IsTextPredictionEnabled As Boolean
<TextBox IsTextPredictionEnabled="bool" />

屬性值

Boolean

bool

true 表示啟用文字預測功能,否則為 false。 預設值為 True

備註

如果使用者使用實體鍵盤裝置,則不會啟用文字預測。

文字預測是使用特定語言字典的TextBox 控件內建的。 將值設定為 true 不會自動啟用自訂類別上的功能。

此屬性不會影響日文或中文的輸入法 編輯器 (輸入法) 。 即使此屬性為 false,也會顯示這些語言的文字預測。

適用於

另請參閱