Share via


CommandBar.Controls Property 

Returns a CommandBarControls object that represents all the controls on a command bar or pop-up control.

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

Usage

Dim commandBar1 As CommandBar

Dim returnValue As CommandBarControls
returnValue = commandBar1.Controls

Syntax

ReadOnly Property Controls() As CommandBarControls
CommandBarControls Controls {get;}
property CommandBarControls^ Controls{
    CommandBarControls^ get();
}
public CommandBarControls get_Controls();
function get Controls() : CommandBarControls;

Thread Safety

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

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

CommandBar Interface
Microsoft.Office.Core Namespace

Other Resources

CommandBar Members