This documentation is archived and is not being maintained.

TextPane Property

Visual Studio .NET 2003

Returns the text pane that contains the selected text.

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

Return Value

Returns a TextPane object.


Sub TextPaneExample()
   ' Before running this example, open a code document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   Dim objTP As TextPane = objSel.TextPane
   ' List text pane height and width property values.
   MsgBox("Text pane height: " & objTP.Height & vbCr & "Text pane width: " & objTP.Width)
End Sub

See Also

TextPanes Collection

Applies To: TextSelection Object