语言

OverlappedPresenter.CreateForToolWindow 方法

定义

创建使用 OverlappedPresenter 工具窗口的值预先填充的对象。

public:
 static OverlappedPresenter ^ CreateForToolWindow();
 static OverlappedPresenter CreateForToolWindow();
public static OverlappedPresenter CreateForToolWindow();
function createForToolWindow()
Public Shared Function CreateForToolWindow () As OverlappedPresenter

返回

使用 OverlappedPresenter 工具窗口的值预先填充的对象。

注解

工具窗口旨在用作浮动工具栏。 它不会出现在任务栏中,也不会显示在用户按 Alt+TAB 时出现的对话框中。

下表显示从CreateForToolWindow方法创建OverlappedPresenter对象时如何设置配置属性。

配置属性 价值
HasBorder true
HasTitleBar true
IsAlwaysOnTop false
是否可最大化 true
是否可最小化 true
IsModal false
可调整大小 true

所有权

如果要设置对话框的所有者,必须在创建 AppWindow 时执行此操作。

适用于