DateTimePicker.Width 属性

定义

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

public float Width { get; set; }

属性值

Single

DateTimePicker 的宽度(以磅为单位)。

示例

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

注解

Width 和 left 属性值所做的更改会导致 Right 更改的属性值 DateTimePicker

Microsoft.Office.Tools.Word.Controls.DateTimePicker.Width属性使用点,而 System.Windows.Forms.Control.Width 属性使用像素。

适用于