Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

TextWindow Object

Visual Studio .NET 2003

Represents a window containing a text document.





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


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.


Namespace: EnvDTE

File: dte.olb


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

© 2015 Microsoft