CommandBarComboBoxClass.Width 属性

定义

获取或设置控件的宽度。Gets or sets the width of the control.

public:
 virtual property int Width { int get(); void set(int value); };
public:
 virtual property int Width { int get(); void set(int value); };
[System.Runtime.InteropServices.DispId(1610874923)]
[get: System.Runtime.InteropServices.DispId(1610874923)]
[set: System.Runtime.InteropServices.DispId(1610874923)]
public virtual int Width { get; set; }
[<System.Runtime.InteropServices.DispId(1610874923)>]
[<get: System.Runtime.InteropServices.DispId(1610874923)>]
[<set: System.Runtime.InteropServices.DispId(1610874923)>]
member this.Width : int with get, set
Public Overridable Property Width As Integer

属性值

Int32

控件的宽度。The width of the control.

实现

属性

注解

如果将此属性 InvalidOperationException 设置为其他值,则此属性将引发。This property throws an InvalidOperationException if it is set to a different value.

适用于