共用方式為


CommandBar.FindControl Method

Returns a command bar control that matches the specified criteria.

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, _
    Recursive As Object _
) As CommandBarControl
'用途
Dim instance As CommandBar
Dim Type As Object
Dim Id As Object
Dim Tag As Object
Dim Visible As Object
Dim Recursive As Object
Dim returnValue As CommandBarControl

returnValue = instance.FindControl(Type, _
    Id, Tag, Visible, Recursive)
CommandBarControl FindControl(
    Object Type,
    Object Id,
    Object Tag,
    Object Visible,
    Object Recursive
)
CommandBarControl^ FindControl(
    [InAttribute] Object^ Type, 
    [InAttribute] Object^ Id, 
    [InAttribute] Object^ Tag, 
    [InAttribute] Object^ Visible, 
    [InAttribute] Object^ Recursive
)
abstract FindControl : 
        Type:Object * 
        Id:Object * 
        Tag:Object * 
        Visible:Object * 
        Recursive:Object -> CommandBarControl 
function FindControl(
    Type : Object, 
    Id : Object, 
    Tag : Object, 
    Visible : Object, 
    Recursive : Object
) : CommandBarControl

Parameters

  • Visible
    Type: System.Object
    true if the control is visible, otherwise false.
  • Recursive
    Type: System.Object
    true if the search is to include the command bar and all of its popup submenus. The default is false.

Return Value

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

.NET Framework Security

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.VisualStudio.CommandBars Namespace