Compartir a través de


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

'Declaración
Function FindControl ( _
    Type As Object, _
    Id As Object, _
    Tag As Object, _
    Visible As Object _
) As CommandBarControl
'Uso
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
    [in, optional] The MsoControlType of the control. A value of -1 matches any control type. If this parameter is not specified, the default value is -1.
  • Id
    Type: System.Object
    [in, optional] An integer representing the ID of the control. A value of -1 matches any control id. If this parameter is not specified, the default value is -1.
  • Tag
    Type: System.Object
    [in, optional] The tag of the control. A value of nulla null reference (Nothing in Visual Basic) matches any tag. If this parameter is not specified, the default value is nulla null reference (Nothing in Visual Basic).
  • Visible
    Type: System.Object
    [in, optional] A Boolean representing the visibility of the control. A value of true matches only visible controls; a value of false matches any control regardless of visibility. If this parameter is not specified, the default value is false.

Return Value

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

.NET Framework Security

See Also

Reference

_CommandBars Interface

_CommandBars Members

Microsoft.VisualStudio.CommandBars Namespace