Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_TextPane(
   /* [out, retval] */ TextPane** retVal
);
[C#]
public TextPane TextPane {get;}
[JScript .NET]
public function get TextPane() : TextPane

Return Value

Returns a TextPane object.

Example

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

Show:
© 2014 Microsoft