TextInputPanel.InPlaceBoundingRectangle 属性

获取在显示当前输入语言的最大输入区时就地输入面板的边框。

命名空间:  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
在显示当前输入语言的最大输入区时就地输入面板的边框。

备注

如果书写板或字符板处于活动状态,则插入按钮的高度包括在就地输入面板的边框中。边框不包括更正区的高度。当就地输入面板自动增大时,将激发 InPlaceSizeChanging/InPlaceSizeChanged 事件对,并且此属性的值将更新以包括附加的书写区或书写行。

示例

下面的示例演示 InPlaceBoundingRectangle 的用法。tip 对象是 TextInputPanel 的实例。 InPlaceBoundingRectangle 返回的 Rectangle 值的宽度和高度用于设置 TextBox (outputTextBox) 的 TextBox.Text 属性。

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 SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

TextInputPanel 类

TextInputPanel 成员

Microsoft.Ink.TextInput 命名空间