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