Export (0) Print
Expand All

_CommandBars.FindControls method

Returns the CommandBarControls collection that fits the specified criteria.

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

[DispIdAttribute()]
CommandBarControls FindControls(
	Object Type,
	Object Id,
	Object Tag,
	Object Visible
)

Parameters

Type
Type: System.Object

Optional MsoControlType. The type of control.

Id
Type: System.Object

Optional Object. The control’s identifier.

Tag
Type: System.Object

Optional Object. The control’s tag value.

Visible
Type: System.Object

Optional Object. True to include only visible command bar controls in the search. The default value is False.

If no controls that fit the criteria are found, the FindControls method returns Nothing.

Show:
© 2015 Microsoft