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 值用于设置 TextBox (outputTextBox) 的 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 类

InPlaceStateChangeEventArgs 成员

Microsoft.Ink.TextInput 命名空间