TextSelection.TextPane Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the text pane that contains the text selection.
public:
property EnvDTE::TextPane ^ TextPane { EnvDTE::TextPane ^ get(); };
public:
property EnvDTE::TextPane ^ TextPane { EnvDTE::TextPane ^ get(); };
[System.Runtime.InteropServices.DispId(54)]
public EnvDTE.TextPane TextPane { [System.Runtime.InteropServices.DispId(54)] get; }
[<System.Runtime.InteropServices.DispId(54)>]
[<get: System.Runtime.InteropServices.DispId(54)>]
member this.TextPane : EnvDTE.TextPane
Public ReadOnly Property TextPane As TextPane
Property Value
A TextPane object.
- Attributes
Examples
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