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


TextInputPanel.InPlaceStateChanging - событие

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

Occurs when the in-place state is about to change.

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

Синтаксис

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

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

Примеры

The following two examples show how to use InPlaceStateChanging.

The first example attaches an InPlaceStateChanging event handler, tip_InPlaceStateChanging, to the TextInputPanel object, tip.

AddHandler tip.InPlaceStateChanging, AddressOf tip_InPlaceStateChanging
tip.InPlaceStateChanging += new EventHandler<InPlaceStateChangeEventArgs>(tip_InPlaceStateChanging);

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

Sub tip_InPlaceStateChanging(ByVal sender As Object, ByVal e As InPlaceStateChangeEventArgs)
    outputTextBox.Text += "In Place State Changing from " + e.OldState.ToString() + Environment.NewLine
End Sub
void tip_InPlaceStateChanging(object sender, InPlaceStateChangeEventArgs e)
{
    outputTextBox.Text += "In Place State Changing from " + e.OldState + 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 - пространство имен