共用方式為


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 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 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

請參閱

參考

TextInputPanel 類別

TextInputPanel 成員

Microsoft.Ink.TextInput 命名空間