TextInputPanel.InPlaceStateChanged 事件
在就地状态更改后发生。
命名空间: Microsoft.Ink.TextInput
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Event InPlaceStateChanged As EventHandler(Of InPlaceStateChangeEventArgs)
用法
Dim instance As TextInputPanel
Dim handler As EventHandler(Of InPlaceStateChangeEventArgs)
AddHandler instance.InPlaceStateChanged, handler
public event EventHandler<InPlaceStateChangeEventArgs> InPlaceStateChanged
public:
event EventHandler<InPlaceStateChangeEventArgs^>^ InPlaceStateChanged {
void add (EventHandler<InPlaceStateChangeEventArgs^>^ value);
void remove (EventHandler<InPlaceStateChangeEventArgs^>^ value);
}
/** @event */
public void add_InPlaceStateChanged (EventHandler<InPlaceStateChangeEventArgs> value)
/** @event */
public void remove_InPlaceStateChanged (EventHandler<InPlaceStateChangeEventArgs> value)
JScript 不支持事件。
示例
下面的两个示例演示如何使用 InPlaceStateChanged。
第一个示例将 InPlaceStateChanged 事件处理程序 tip_InPlaceStateChanged 附加到 TextInputPanel 对象 tip。
AddHandler tip.InPlaceStateChanged, AddressOf tip_InPlaceStateChanged
tip.InPlaceStateChanged += new EventHandler<InPlaceStateChangeEventArgs>(tip_InPlaceStateChanged);
第二个示例定义 InPlaceStateChanged 事件的事件处理程序,其中 NewState 值用于设置 TextBox (outputTextBox) 的 TextBox.Text 属性。
Sub tip_InPlaceStateChanged(ByVal sender As Object, ByVal e As InPlaceStateChangeEventArgs)
outputTextBox.Text += "In Place State Changed to " + e.NewState.ToString() + Environment.NewLine
End Sub
void tip_InPlaceStateChanged(object sender, InPlaceStateChangeEventArgs e)
{
outputTextBox.Text += "In Place State Changed to " + e.NewState + Environment.NewLine;
}
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0