CommandBarsClass.FindControl(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 the command bar control that has the specified characteristics.
virtual Microsoft::VisualStudio::CommandBars::CommandBarControl FindControl(winrt::Windows::Foundation::IInspectable const & Type, winrt::Windows::Foundation::IInspectable const & Id, winrt::Windows::Foundation::IInspectable const & Tag, winrt::Windows::Foundation::IInspectable const & Visible);
[System.Runtime.InteropServices.DispId(1610809352)]
public virtual Microsoft.VisualStudio.CommandBars.CommandBarControl FindControl (object Type, object Id, object Tag, object Visible);
[<System.Runtime.InteropServices.DispId(1610809352)>]
abstract member FindControl : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControl
override this.FindControl : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControl
Public Overridable Function FindControl (Optional Type As Object, Optional Id As Object, Optional Tag As Object, Optional Visible As Object) As CommandBarControl
Parameters
- Type
- Object
The MsoControlType.
- Id
- Object
The ID of the control.
- Tag
- Object
The tag of the control.
- Visible
- Object
true
if only visible controls are to be matched, otherwise false
.
Returns
The matching CommandBarControl.
Implements
- Attributes