CommandBarsClass.FindControl(Object, Object, Object, Object) 方法

定义

查找具有指定特征的命令栏控件。

 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

参数

Id
Object

控件的 ID。

Tag
Object

控件的标记。

Visible
Object

true 如果仅匹配可见控件,则为; 否则为 false

返回

CommandBarControl

匹配的 CommandBarControl

实现

属性

适用于