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