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
- Type
Type: System.Object
The type of control.
- Id
Type: System.Object
The identifier of the control.
- Tag
Type: System.Object
The tag of the control.
- 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
- 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.