Partager via


CommandBarsClass.FindControl Method

Finds the command bar control that has the specified characteristics.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Declaration
Public Overridable Function FindControl ( _
    Type As Object, _
    Id As Object, _
    Tag As Object, _
    Visible As Object _
) As CommandBarControl
public virtual CommandBarControl FindControl(
    Object Type,
    Object Id,
    Object Tag,
    Object Visible
)
public:
virtual 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  
override FindControl : 
        Type:Object * 
        Id:Object * 
        Tag:Object * 
        Visible:Object -> CommandBarControl
public function FindControl(
    Type : Object, 
    Id : Object, 
    Tag : Object, 
    Visible : Object
) : CommandBarControl

Parameters

  • Id
    Type: Object

    The ID of the control.

  • Tag
    Type: Object

    The tag of the control.

  • Visible
    Type: Object

    true if only visible controls are to be matched, otherwise false.

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The matching CommandBarControl.

Implements

_CommandBars.FindControl(Object, Object, Object, Object)

.NET Framework Security

See Also

Reference

CommandBarsClass Class

Microsoft.VisualStudio.CommandBars Namespace