TextPanes Interface

Definition

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

C++
public interface class TextPanes : System::Collections::IEnumerable
Attributes
Implements

Examples

VB
Sub TextPanesExample(ByVal dte As EnvDTE.DTE)  
    Dim objTW As TextWindow  
    Dim colPanes As TextPanes  

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

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 and width. The TextPanes collection contains one or more of these TextPane objects for a text editor window.

Properties

Count

Gets a value indicating the number of objects in the TextPanes collection.

DTE

Gets the top-level extensibility object.

Parent

Gets the immediate parent object of a TextPanes collection.

Methods

GetEnumerator()

Gets an enumeration for items in a collection.

Item(Object)

Returns a TextPane object in a TextPanes collection.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022