HTMLWindow.Parent Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir nesnenin hemen üst nesnesini alır HTMLWindow .
public:
property EnvDTE::Window ^ Parent { EnvDTE::Window ^ get(); };
public:
property EnvDTE::Window ^ Parent { EnvDTE::Window ^ get(); };
[System.Runtime.InteropServices.DispId(2)]
public EnvDTE.Window Parent { [System.Runtime.InteropServices.DispId(2)] get; }
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
member this.Parent : EnvDTE.Window
Public ReadOnly Property Parent As Window
Özellik Değeri
Bir Window nesnesi.
- Öznitelikler
Örnekler
public void CodeExample(DTE2 dte)
{
// Make sure you have an open HTML document before running this example.
try
{
if (dte.ActiveDocument.ActiveWindow.Object is HTMLWindow)
{
HTMLWindow htmlwin;
string msg = "";
htmlwin = dte.ActiveDocument.ActiveWindow.Object as HTMLWindow;
// Show the related application object's name.
msg += "The application containing this HTMLWindow is " + htmlwin.DTE.Name;
// Show the HTMLWindow's parent object.
msg += "\nThe HTMLWindow's parent object is " + htmlwin.Parent.Type.ToString();
MessageBox.Show(msg);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Açıklamalar
ParentÖzelliği nesne veya koleksiyona hemen üst öğeyi döndürür.