共用方式為


TextInputPanel.CurrentInputArea 屬性

取得目前的輸入區域。

命名空間:  Microsoft.Ink.TextInput
組件:  Microsoft.Ink (在 Microsoft.Ink.dll 中)

語法

'宣告
Public ReadOnly Property CurrentInputArea As PanelInputArea
'用途
Dim instance As TextInputPanel
Dim value As PanelInputArea

value = instance.CurrentInputArea
public PanelInputArea CurrentInputArea { get; }
public:
property PanelInputArea CurrentInputArea {
    PanelInputArea get ();
}
/** @property */
public PanelInputArea get_CurrentInputArea()
public function get CurrentInputArea () : PanelInputArea

屬性值

型別:Microsoft.Ink.TextInput.PanelInputArea
目前的輸入區域。

備註

當使用者已在區域之間明確切換焦點,或者由於輸入語言不支援辨識器而無法使用預設輸入區域時,目前的輸入區域就會與預設輸入區域相異。

當 Tablet PC 輸入面板關閉或隱藏時,目前的輸入區域會重設為預設輸入區域,除非預設狀態為 Auto 則目前的輸入區域表示上次可見的輸入區域,而且不會重設。

範例

以下範例將說明 CurrentInputArea 的用法。tip 物件是 TextInputPanel 的執行個體。CurrentInputArea 和 DefaultInputArea 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 TextBox.Text (英文) 屬性。CurrentInputArea 和 DefaultInputArea 包含其中一個 PanelInputArea 值。

outputTextBox.Text += "Current Input Area is " + tip.CurrentInputArea.ToString() + Environment.NewLine
outputTextBox.Text += "Default Input Area is " + tip.DefaultInputArea.ToString() + Environment.NewLine
outputTextBox.Text += "Current Input Area is " + tip.CurrentInputArea + Environment.NewLine;
outputTextBox.Text += "Default Input Area is " + tip.DefaultInputArea + Environment.NewLine;

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

TextInputPanel 類別

TextInputPanel 成員

Microsoft.Ink.TextInput 命名空間