次の方法で共有


DialogPage.Window Property

Gets the window that is used as the user interface of the dialog page.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
<BrowsableAttribute(False)> _
Protected Overridable ReadOnly Property Window As IWin32Window
'使用
Dim value As IWin32Window

value = Me.Window
[BrowsableAttribute(false)]
protected virtual IWin32Window Window { get; }
[BrowsableAttribute(false)]
protected:
virtual property IWin32Window^ Window {
    IWin32Window^ get ();
}
protected function get Window () : IWin32Window

Property Value

Type: System.Windows.Forms.IWin32Window

An IWin32Window providing the handle to the window acting as the user interface for dialog page.

Remarks

By default, Window returns a property grid with an entry for each public property supporting conversion to and from strings through TypeConverter.

Visual Studio requires that the windows of ToolsOptions page windows must be constant and should not be re-created upon successive calls. Some user interface controls, particularly Windows Forms controls, can create and destroy their window handles at will, and this must be avoided. One way of doing this is to return Windows Forms derived from UserControl.

注意

Typically an instance of a dialog page class is its own automation object. Therefore, properties displayed are those of a class derived from DialogPage. However, if AutomationObject returns another object, it is that object's properties, and not the properties of the class, that are displayed.

Permissions

See Also

Concepts

Tools Options Pages

Toolbox (Visual Studio SDK)

State Persistence and the Visual Studio IDE

Reference

DialogPage Class

DialogPage Members

Microsoft.VisualStudio.Shell Namespace

Component

System.Windows.Forms

IWin32Window

DialogPage