Contains all of the TextPane Objects in a text editor window.
Public Interface TextPanes Inherits IDispatch
interface TextPanes : IDispatch
public interface TextPanes : IDispatch
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.
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