TextInputPanel.InPlaceSizeChanged - событие
Обновлен: Ноябрь 2007
Occurs when the in-place Input Panel size has changed due to a user resize, auto growth, or an input area change.
Пространство имен: Microsoft.Ink.TextInput
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Event InPlaceSizeChanged As EventHandler(Of InPlaceSizeChangeEventArgs)
'Применение
Dim instance As TextInputPanel
Dim handler As EventHandler(Of InPlaceSizeChangeEventArgs)
AddHandler instance.InPlaceSizeChanged, handler
public event EventHandler<InPlaceSizeChangeEventArgs> InPlaceSizeChanged
public:
event EventHandler<InPlaceSizeChangeEventArgs^>^ InPlaceSizeChanged {
void add (EventHandler<InPlaceSizeChangeEventArgs^>^ value);
void remove (EventHandler<InPlaceSizeChangeEventArgs^>^ value);
}
/** @event */
public void add_InPlaceSizeChanged (EventHandler<InPlaceSizeChangeEventArgs> value)
/** @event */
public void remove_InPlaceSizeChanged (EventHandler<InPlaceSizeChangeEventArgs> value)
JScript не поддерживает события.
Примеры
The following two examples show how to use InPlaceSizeChanged.
The first example attaches an InPlaceSizeChanged event handler, tip_InPlaceSizeChanged, to the TextInputPanel object, tip.
AddHandler tip.InPlaceSizeChanged, AddressOf tip_InPlaceSizeChanged
tip.InPlaceSizeChanged += new EventHandler<InPlaceSizeChangeEventArgs>(tip_InPlaceSizeChanged);
The second example defines an event handler for the InPlaceSizeChanged event where the values contained in the InPlaceSizeChangeEventArgs object are used to set the TextBox.Text property of a TextBox, outputTextBox.
Sub tip_InPlaceSizeChanged(ByVal sender As Object, ByVal e As InPlaceSizeChangeEventArgs)
outputTextBox.Text += "New In Place Size is " + e.NewSize.Width.ToString() + "x" + e.NewSize.Height.ToString() + Environment.NewLine
End Sub
void tip_InPlaceSizeChanged(object sender, InPlaceSizeChangeEventArgs e)
{
outputTextBox.Text += "New In Place Size is " + e.NewSize.Width + "x" + e.NewSize.Height + Environment.NewLine;
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0