Edit

Share via


_CommandBars.FindControls(Object, Object, Object, Object) Method

Definition

Returns the CommandBarControls collection that fits the specified criteria.

public Microsoft.Office.Core.CommandBarControls FindControls (object Type, object Id, object Tag, object Visible);
abstract member FindControls : obj * obj * obj * obj -> Microsoft.Office.Core.CommandBarControls
Public Function FindControls (Optional Type As Object, Optional Id As Object, Optional Tag As Object, Optional Visible As Object) As CommandBarControls

Parameters

Type
Object

Optional MsoControlType. The type of control.

Id
Object

Optional Object. The control’s identifier.

Tag
Object

Optional Object. The control’s tag value.

Visible
Object

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

Returns

Remarks

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

Applies to