取得目前的輸入區域。
命名空間: Microsoft.Ink.TextInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public ReadOnly Property OldArea As PanelInputArea
'用途
Dim instance As InputAreaChangeEventArgs
Dim value As PanelInputArea
value = instance.OldArea
public PanelInputArea OldArea { get; }
public:
property PanelInputArea OldArea {
PanelInputArea get ();
}
/** @property */
public PanelInputArea get_OldArea()
public function get OldArea () : PanelInputArea
屬性值
型別:Microsoft.Ink.TextInput.PanelInputArea
目前的輸入區域。
範例
這個範例會定義 InputAreaChanging 事件的事件處理常式,而 OldArea 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 TextBox.Text (英文) 屬性。
Sub tip_InputAreaChanging(ByVal sender As Object, ByVal e As InputAreaChangeEventArgs)
outputTextBox.Text += "Input Area Changing from " + e.OldArea.ToString() + Environment.NewLine
End Sub
void tip_InputAreaChanging(object sender, InputAreaChangeEventArgs e)
{
outputTextBox.Text += "Input Area Changing from " + e.OldArea + Environment.NewLine;
}
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0