TextSelection.TextPane 属性

定义

获取包含选定文本的文本窗格。

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

属性值

TextPane

TextPane 对象。

属性

示例

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  

适用于