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


TextInputPanel.InPlaceBoundingRectangle - свойство

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

Gets the bounding rectangle for the in-place Input Panel when the largest input area for the current input language is showing.

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

Синтаксис

'Декларация
Public ReadOnly Property InPlaceBoundingRectangle As Rectangle
'Применение
Dim instance As TextInputPanel
Dim value As Rectangle

value = instance.InPlaceBoundingRectangle
public Rectangle InPlaceBoundingRectangle { get; }
public:
property Rectangle InPlaceBoundingRectangle {
    Rectangle get ();
}
/** @property */
public Rectangle get_InPlaceBoundingRectangle()
public function get InPlaceBoundingRectangle () : Rectangle

Значение свойства

Тип: System.Drawing.Rectangle
The bounding rectangle for the in-place Input Panel when the largest input area for the current input language is showing.

Заметки

If the Writing Pad or Character Pad is active, then the height of the Insert button is included in the bounding rectangle for the in-place Input Panel. The bounding rectangle does not include the height of the correction comb. When the in-place Input Panel auto grows, InPlaceSizeChanging/InPlaceSizeChanged event pair is fired and the value of this property is updated to include the additional writing area or writing line.

Примеры

The following example demonstrates the use of InPlaceBoundingRectangle. The tip object is an instance of TextInputPanel. The width and height of the Rectangle value returned by the InPlaceBoundingRectangle is used to set TextBox.Text property of a TextBox, outputTextBox.

Dim r As Rectangle = tip.InPlaceBoundingRectangle
outputTextBox.Text += "In Place Bounding Rectangle is " + r.Width.ToString() + "x" + r.Height.ToString() + Environment.NewLine
Rectangle r = tip.InPlaceBoundingRectangle;
outputTextBox.Text += "In Place Bounding Rectangle is " + r.Width + "x" + r.Height + 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 - пространство имен