Sdílet prostřednictvím


TextInputPanel.InPlaceBoundingRectangle Property

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

Namespace:  Microsoft.Ink.TextInput
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property InPlaceBoundingRectangle As Rectangle
'Usage
Dim instance As TextInputPanel 
Dim value As Rectangle 

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

Property Value

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

Remarks

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.

Examples

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;

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

TextInputPanel Class

TextInputPanel Members

Microsoft.Ink.TextInput Namespace