Export (0) Print
Expand All

TextPanes Collection

Visual Studio .NET 2003

Contains all of the TextPane Objects in a text editor window.






[Visual Basic .NET]
Public Interface TextPanes
    Inherits IDispatch
[Visual Basic 6]
Class TextPanes
interface TextPanes : IDispatch
public interface TextPanes : IDispatch
[JScript .NET]
public interface TextPanes extends IDispatch


You can split a text editor window into two panes. The TextPane object gives you access to the specific text selection associated with each pane, as well as its properties such as height, width, and so on. The TextPanes collection contains one or more of these TextPane objects for a text editor window.


Namespace: EnvDTE

File: dte.olb


Sub TextPanesExample()
   Dim objTW As TextWindow
   Dim colPanes As TextPanes

   Set objTW = ActiveWindow.Object
   Set colPanes = objTW.Panes
   MsgBox "The """ & objTW.Parent.Caption & """ window contains " & str(colPanes.Count) & " pane(s)."
End Sub

See Also

Properties, Events, and Methods | TextPane Object | TextWindow Object

© 2015 Microsoft