Export (0) Print
Expand All

TextPanes Collection

Visual Studio .NET 2003

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

DTE

   Windows

      Window

         TextWindow

            TextPanes

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

Remarks

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.

Requirements

Namespace: EnvDTE

File: dte.olb

Example

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

Show:
© 2015 Microsoft