This documentation is archived and is not being maintained.

CommandBar.Width Property 

Returns or sets the width (in pixels) of the specified command bar.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Dim commandBar1 As CommandBar

Dim returnValue As Integer
returnValue = commandBar1.Width

Dim sampleValue As Integer
commandBar1.Width = sampleValue

int Width {get; set;}
public int get_Width();
public void set_Width(int);
function get Width() : int;
function set Width(int);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms