Export (0) Print
Expand All

TextWindow Object

Visual Studio .NET 2003

Represents a window containing a text document.

DTE

   Windows

      Window

         TextWindow

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

Remarks

The TextWindow object is returned by the Object property of the Window object when the window is a core editor window. When the document in the window is an HTML document, then, depending on whether the Design view or the Source view is set, you get an HTMLWindow or TextWindow object.

Requirements

Namespace: EnvDTE

File: dte.olb

Example

Sub TextWindowExample()
   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, Methods, and Events | HTMLWindow Object | TextDocument Object | TextPane Object | TextWindow Object

Show:
© 2014 Microsoft