CommandBar::FindControl Method (Object^, Object^, Object^, Object^, Object^)
Returns a command bar control that matches the specified criteria.
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
[DispIdAttribute(1610874887)] CommandBarControl^ FindControl( Object^ Type, Object^ Id, Object^ Tag, Object^ Visible, Object^ Recursive )
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 control id. 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 null matches any tag. If this parameter is not specified, the default value is null.
- Visible
-
Type:
System::Object^
[in, optional] A Boolean representing the visibility of the control. true matches only visible controls. false matches any control regardless of visibility. If this parameter is not specified, the default value is false.
- Recursive
-
Type:
System::Object^
[in, optional] Boolean indicating how to search. If true, search only the current command bar; if false, search the current command bar and all descendent command bars. If this parameter is not specified, the default value is false.
Return Value
Type: Microsoft.VisualStudio.CommandBars::CommandBarControl^The T:Microsoft.VisualStudio.CommandBarsl.CommandBarControl.