Share via


CommandBarButtonClass.Width Property

Gets or sets the width of the control.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Declaration
Public Overridable Property Width As Integer
public virtual int Width { get; set; }
public:
virtual property int Width {
    int get ();
    void set (int value);
}
abstract Width : int with get, set
override Width : int with get, set
function get Width () : int
function set Width (value : int)

Property Value

Type: System.Int32
The width of the control.

Implements

_CommandBarButton.Width

Remarks

This property throws an InvalidOperationException if it is set to a different value.

.NET Framework Security

See Also

Reference

CommandBarButtonClass Class

Microsoft.VisualStudio.CommandBars Namespace