Share via


CommandBarsClass.FindControl(Object, Object, Object, Object) Method

Definition

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

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

Applies to