InPlaceVisibilityChangeEventArgs 類別
提供 InPlaceVisibilityChanged 和 InPlaceVisibilityChanging 事件的資料。
命名空間: Microsoft.Ink.TextInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Class InPlaceVisibilityChangeEventArgs _
Inherits EventArgs
'用途
Dim instance As InPlaceVisibilityChangeEventArgs
public class InPlaceVisibilityChangeEventArgs : EventArgs
public ref class InPlaceVisibilityChangeEventArgs : public EventArgs
public class InPlaceVisibilityChangeEventArgs extends EventArgs
public class InPlaceVisibilityChangeEventArgs extends EventArgs
範例
在下列兩個範例中,會示範 InPlaceVisibilityChangeEventArgs 的用法。
第一個範例會將 InPlaceVisibilityChanging 事件處理常式 tip_InPlaceVisibilityChanging 附加至 TextInputPanel 物件 tip。
AddHandler tip.InPlaceVisibilityChanging, AddressOf tip_InPlaceVisibilityChanging
tip.InPlaceVisibilityChanging += new EventHandler<InPlaceVisibilityChangeEventArgs>(tip_InPlaceVisibilityChanging);
第二個範例會定義 InPlaceVisibilityChanging 事件的事件處理常式,而 Visible 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 TextBox.Text (英文) 屬性。
Sub tip_InPlaceVisibilityChanging(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_InPlaceVisibilityChanging(object sender, InPlaceVisibilityChangeEventArgs e)
{
outputTextBox.Text += (e.Visible ? "Panel is Visible" : "Panel is not Visible") + Environment.NewLine;
}
繼承階層架構
System.Object
System.EventArgs
Microsoft.Ink.TextInput.InPlaceVisibilityChangeEventArgs
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0