Sdílet prostřednictvím


_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

  • 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.

Return Value

Type: Microsoft.Office.Core.CommandBarControls

Remarks

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

See Also

Reference

_CommandBars Interface

_CommandBars Members

Microsoft.Office.Core Namespace