TextSelection.TextPane 属性

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

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
ReadOnly Property TextPane As TextPane
    Get
TextPane TextPane { get; }
property TextPane^ TextPane {
    TextPane^ get ();
}
abstract TextPane : TextPane
function get TextPane () : TextPane

属性值

类型:EnvDTE.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

.NET Framework 安全性

请参见

参考

TextSelection 接口

EnvDTE 命名空间