O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text Windows and Window Panes

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 type.

TextWindow textWindow = DTE.ActiveWindow.Object;

The 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required