CommandBarButtonClass.Width 属性

获取或设置控件的宽度。

命名空间:  Microsoft.VisualStudio.CommandBars
程序集:  Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)

语法

声明
Public Overridable Property Width As Integer
public virtual int Width { get; set; }

属性值

类型:System.Int32
控件的宽度。

实现

_CommandBarButton.Width

备注

,如果它设置为不同的值,此属性会引发 InvalidOperationException

.NET Framework 安全性

请参见

参考

CommandBarButtonClass 类

Microsoft.VisualStudio.CommandBars 命名空间