PictureBox.Width 属性

获取或设置 PictureBox 的宽度(以磅为单位)。

命名空间:  Microsoft.Office.Tools.Word.Controls
程序集:  Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

语法

声明
Public Property Width As Single
    Get
    Set
public float Width { get; set; }

属性值

类型:System.Single
PictureBox 的宽度(以磅为单位)。

备注

更改 Width 和 Left 属性值会使 PictureBoxRight 属性值发生更改。

PictureBox.Width 属性使用磅值,而 Control.Width 属性使用像素值。

示例

有关演示如何使用此属性的代码示例,请参见 Button.WidthMicrosoft.Office.Tools.Word.Controls 命名空间中的所有控件都具有在功能上等效的 Width 属性。

.NET Framework 安全性

请参见

参考

PictureBox 类

Microsoft.Office.Tools.Word.Controls 命名空间