TextSelection.TextPane プロパティ

更新 : 2007 年 11 月

選択したテキストを含むテキスト ペインを取得します。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
ReadOnly Property TextPane As TextPane
'使用
Dim instance As TextSelection
Dim value As TextPane

value = instance.TextPane
TextPane TextPane { get; }
property TextPane^ TextPane {
    TextPane^ get ();
}
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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

TextSelection インターフェイス

TextSelection メンバ

EnvDTE 名前空間