Export (0) Print
Expand All
Expand Minimize

Panes Property

Visual Studio .NET 2003

Returns the collection of panes in the Text window.

[Visual Basic .NET]
Public ReadOnly Property Panes() As TextPanes
[Visual Basic 6]
Property Get Panes() As TextPanes
HRESULT __stdcall get_Panes(
   /* [out, retval] */ TextPanes** retVal
public TextPanes Panes {get;}
[JScript .NET]
public function get Panes() : TextPanes

Return Value

Returns a TextPanes collection.


Sub PanesExample()
   Dim twin As TextWindow
   Dim panes As TextPanes

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

See Also

Applies To: TextWindow Object

© 2015 Microsoft