Window Property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

TextPane.Window Property

Gets the Window object that contains the pane.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Window Window { get; }

Property Value

Type: EnvDTE.Window
A Window object.

public void WindowExample(_DTE dte)
{
    TextWindow tw;
    TextPane tpn;
    TextPoint tpt;

    tw = (TextWindow)dte.ActiveWindow.Object;
    tpn = tw.ActivePane;

    MessageBox.Show("The active pane is " + tpn.Height.ToString () + " 
    lines high and " + tpn.Width.ToString () + " columns wide.");
    tpt = tpn.StartPoint;
    MessageBox.Show("It begins at line " + tpt.Line.ToString () + ", 
    column " + tpt.LineCharOffset.ToString () + ".");
    tpn.Window.Close (vsSaveChanges.vsSaveChangesYes);
}

Show:
© 2016 Microsoft