_CommandBars.FindControls(Object, Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds all the command bar controls that match the given criteria.
[System.Runtime.InteropServices.DispId(1610809365)]
public Microsoft.VisualStudio.CommandBars.CommandBarControls FindControls (object Type, object Id, object Tag, object Visible);
public Microsoft.VisualStudio.CommandBars.CommandBarControls FindControls (object Type, object Id, object Tag, object Visible);
[<System.Runtime.InteropServices.DispId(1610809365)>]
abstract member FindControls : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControls
abstract member FindControls : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControls
Public Function FindControls (Optional Type As Object, Optional Id As Object, Optional Tag As Object, Optional Visible As Object) As CommandBarControls
Parameters
- Type
- 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
- 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
- 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
- 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
.
Returns
A CommandBarControls that includes all the matching controls.
- Attributes