DateTimePicker.Width 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 DateTimePicker 的宽度(以磅为单位)。
public float Width { get; set; }
属性值
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 属性使用像素。