Partilhar via


Propriedade TextSelection.TextPane

Obtém o painel de texto que contém o texto selecionado.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
ReadOnly Property TextPane As TextPane
    Get
TextPane TextPane { get; }
property TextPane^ TextPane {
    TextPane^ get ();
}
abstract TextPane : TextPane
function get TextPane () : TextPane

Valor de propriedade

Tipo: EnvDTE.TextPane
A TextPane objeto.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

TextSelection Interface

Namespace EnvDTE