Text windows have their own specific object abstraction in addition to the generic
Window object: the
TextWindow object is used to represent text editor windows. To obtain a reference to a window’s
TextWindow object, you retrieve the
Window object’s value and assign it into a
TextWindow textWindow = DTE.ActiveWindow.Object;
TextWindow object doesn’t provide much functionality over and above the functionality found in the
Window type; its real value is the access it provides to window panes.
Text editor windows in Visual Studio can be split into two panes; with a text editor open, simply select Split from the Window menu to create a new pane within the window. The ...