Поделиться через


TextInputPanel.InPlaceVisibilityChanging - событие

Обновлен: Ноябрь 2007

Occurs when the in-place Input Panel visibility is about to change.

Пространство имен:  Microsoft.Ink.TextInput
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Event InPlaceVisibilityChanging As EventHandler(Of InPlaceVisibilityChangeEventArgs)
'Применение
Dim instance As TextInputPanel
Dim handler As EventHandler(Of InPlaceVisibilityChangeEventArgs)

AddHandler instance.InPlaceVisibilityChanging, handler
public event EventHandler<InPlaceVisibilityChangeEventArgs> InPlaceVisibilityChanging
public:
 event EventHandler<InPlaceVisibilityChangeEventArgs^>^ InPlaceVisibilityChanging {
    void add (EventHandler<InPlaceVisibilityChangeEventArgs^>^ value);
    void remove (EventHandler<InPlaceVisibilityChangeEventArgs^>^ value);
}
/** @event */
public void add_InPlaceVisibilityChanging (EventHandler<InPlaceVisibilityChangeEventArgs> value)
/** @event */
public void remove_InPlaceVisibilityChanging (EventHandler<InPlaceVisibilityChangeEventArgs> value)
JScript не поддерживает события.

Примеры

The following two examples show how to use InPlaceVisibilityChanging.

The first example attaches an InPlaceVisibilityChanging event handler, tip_InPlaceVisibilityChanging, to the TextInputPanel object, tip.

AddHandler tip.InPlaceVisibilityChanging, AddressOf tip_InPlaceVisibilityChanging
tip.InPlaceVisibilityChanging += new EventHandler<InPlaceVisibilityChangeEventArgs>(tip_InPlaceVisibilityChanging);

The second example defines an event handler for the InPlaceVisibilityChanging event where the Visible value is used to set the TextBox.Text property of a TextBox, outputTextBox.

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;
}

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

TextInputPanel Класс

TextInputPanel - члены

Microsoft.Ink.TextInput - пространство имен