Application.OpenForms Application.OpenForms Application.OpenForms Application.OpenForms Property

定义

获取为应用程序所有的已打开窗体的集合。Gets a collection of open forms owned by the application.

public:
 static property System::Windows::Forms::FormCollection ^ OpenForms { System::Windows::Forms::FormCollection ^ get(); };
public static System.Windows.Forms.FormCollection OpenForms { get; }
member this.OpenForms : System.Windows.Forms.FormCollection
Public Shared ReadOnly Property OpenForms As FormCollection

属性值

包含属于此应用程序的所有当前打开窗体的 FormCollectionA FormCollection containing all the currently open forms owned by this application.

注解

OpenForms属性表示应用程序拥有的窗体的只读集合。The OpenForms property represents a read-only collection of forms owned by the application. 可以按索引位置或Name Form的来搜索此集合。This collection can be searched by index position or by the Name of the Form.

安全性

UIPermission
调用方必须有权访问所有窗口,如AllWindows UIPermissionWindow枚举的值所定义。Caller must have permission to access all windows, as defined by the AllWindows value of the UIPermissionWindow enumeration.

适用于

另请参阅