TextSelection.TextPane 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取包含选定文本的文本窗格。
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 对象。
- 属性
示例
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