InPlaceSizeChangeEventArgs.NewSize 属性
获取输入面板将更改为的大小。
命名空间: Microsoft.Ink.TextInput
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public ReadOnly Property NewSize As Rectangle
用法
Dim instance As InPlaceSizeChangeEventArgs
Dim value As Rectangle
value = instance.NewSize
public Rectangle NewSize { get; }
public:
property Rectangle NewSize {
Rectangle get ();
}
/** @property */
public Rectangle get_NewSize()
public function get NewSize () : Rectangle
属性值
类型:System.Drawing.Rectangle
输入面板将更改为的大小。
示例
此示例定义 InPlaceSizeChanged 事件的事件处理程序,其中包含在 InPlaceSizeChangeEventArgs 对象中的值用于设置 TextBox (outputTextBox) 的 TextBox.Text 属性。
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 SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0