_CommandBars.FindControls Method
Returns the CommandBarControls collection that fits the specified criteria.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function FindControls ( _
Type As Object, _
Id As Object, _
Tag As Object, _
Visible As Object _
) As CommandBarControls
'Usage
Dim instance As _CommandBars
Dim Type As Object
Dim Id As Object
Dim Tag As Object
Dim Visible As Object
Dim returnValue As CommandBarControls
returnValue = instance.FindControls(Type, _
Id, Tag, Visible)
CommandBarControls FindControls(
Object Type,
Object Id,
Object Tag,
Object Visible
)
Parameters
Type
Type: System.ObjectOptional MsoControlType. The type of control.
Id
Type: System.ObjectOptional Object. The control’s identifier.
Tag
Type: System.ObjectOptional Object. The control’s tag value.
Visible
Type: System.ObjectOptional Object. True to include only visible command bar controls in the search. The default value is False.
Return Value
Type: Microsoft.Office.Core.CommandBarControls
Remarks
If no controls that fit the criteria are found, the FindControls method returns Nothing.