Finds the command bar control that has the specified characteristics.
Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
声明
Function FindControl ( _
    Type As Object, _
    Id As Object, _
    Tag As Object, _
    Visible As Object _
) As CommandBarControl
用法
Dim instance As _CommandBars
Dim Type As Object
Dim Id As Object
Dim Tag As Object
Dim Visible As Object
Dim returnValue As CommandBarControl
returnValue = instance.FindControl(Type, _
    Id, Tag, Visible)
CommandBarControl FindControl(
    Object Type,
    Object Id,
    Object Tag,
    Object Visible
)
CommandBarControl^ FindControl(
    [InAttribute] Object^ Type, 
    [InAttribute] Object^ Id, 
    [InAttribute] Object^ Tag, 
    [InAttribute] Object^ Visible
)
abstract FindControl : 
        Type:Object * 
        Id:Object * 
        Tag:Object * 
        Visible:Object -> CommandBarControl 
function FindControl(
    Type : Object, 
    Id : Object, 
    Tag : Object, 
    Visible : Object
) : CommandBarControl
Parameters
- Type
Type: System.Object
The MsoControlType. 
- Id
Type: System.Object
The ID of the control. 
- Tag
Type: System.Object
The tag of the control. 
- Visible
Type: System.Object
true if only visible controls are to be matched, otherwise false. 
Return Value
Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The matching CommandBarControl.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.