Compartir a través de


TextSelection.TextPane Property

Definition

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  

Applies to