PrintPreviewDialog.TopMost PrintPreviewDialog.TopMost PrintPreviewDialog.TopMost PrintPreviewDialog.TopMost Property

定义

获取或设置一个值,该值指示窗体是否应显示为应用程序的最顶层窗体。Gets or sets a value indicating whether the form should be displayed as the topmost form of your application.

public:
 property bool TopMost { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool TopMost { get; set; }
member this.TopMost : bool with get, set
Public Property TopMost As Boolean

属性值

如果将窗体显示为最顶层窗体,则为 true;否则为 falsetrue to display the form as a topmost form; otherwise, false. 默认值为 falseThe default is false.

注解

此属性与此类无关。This property is not relevant for this class.

最顶层窗体是指与所有其他窗体重叠的窗体, 即使它不是活动窗体或前景窗体。A topmost form is a form that overlaps all the other forms even if it is not the active or foreground form. 最顶层窗体始终显示在应用程序的 z 顺序的最高点上。Topmost forms are always displayed at the highest point in the z-order of an application. 可以使用此方法创建始终显示在应用程序中的窗体, 如 "查找和替换" 工具窗口。You can use this method to create a form that is always displayed in your application, such as a Find and Replace tool window.

适用于