TextInputPanel.InPlaceStateChanging 事件
在就地状态即将更改时发生。
命名空间: Microsoft.Ink.TextInput
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Event InPlaceStateChanging As EventHandler(Of InPlaceStateChangeEventArgs)
用法
Dim instance As TextInputPanel
Dim handler As EventHandler(Of InPlaceStateChangeEventArgs)
AddHandler instance.InPlaceStateChanging, handler
public event EventHandler<InPlaceStateChangeEventArgs> InPlaceStateChanging
public:
event EventHandler<InPlaceStateChangeEventArgs^>^ InPlaceStateChanging {
void add (EventHandler<InPlaceStateChangeEventArgs^>^ value);
void remove (EventHandler<InPlaceStateChangeEventArgs^>^ value);
}
/** @event */
public void add_InPlaceStateChanging (EventHandler<InPlaceStateChangeEventArgs> value)
/** @event */
public void remove_InPlaceStateChanging (EventHandler<InPlaceStateChangeEventArgs> value)
JScript 不支持事件。
示例
下面的两个示例演示如何使用 InPlaceStateChanging。
第一个示例将 InPlaceStateChanging 事件处理程序 tip_InPlaceStateChanging 附加到 TextInputPanel 对象 tip。
AddHandler tip.InPlaceStateChanging, AddressOf tip_InPlaceStateChanging
tip.InPlaceStateChanging += new EventHandler<InPlaceStateChangeEventArgs>(tip_InPlaceStateChanging);
第二个示例定义 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