VsTextViewClass.GetSelection (Método)
Devuelve el intervalo de texto correspondiente a la selección actual, si existe una.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxis
'Declaración
Public Overridable Function GetSelection ( _
<OutAttribute> ByRef piAnchorLine As Integer, _
<OutAttribute> ByRef piAnchorCol As Integer, _
<OutAttribute> ByRef piEndLine As Integer, _
<OutAttribute> ByRef piEndCol As Integer _
) As Integer
public virtual int GetSelection(
out int piAnchorLine,
out int piAnchorCol,
out int piEndLine,
out int piEndCol
)
public:
virtual int GetSelection(
[OutAttribute] int% piAnchorLine,
[OutAttribute] int% piAnchorCol,
[OutAttribute] int% piEndLine,
[OutAttribute] int% piEndCol
)
abstract GetSelection :
piAnchorLine:int byref *
piAnchorCol:int byref *
piEndLine:int byref *
piEndCol:int byref -> int
override GetSelection :
piAnchorLine:int byref *
piAnchorCol:int byref *
piEndLine:int byref *
piEndCol:int byref -> int
public function GetSelection(
piAnchorLine : int,
piAnchorCol : int,
piEndLine : int,
piEndCol : int
) : int
Parámetros
piAnchorLine
Tipo: Int32%[out] Posición de línea de delimitación para la selección. Según la selección del usuario, este valor no es necesariamente la línea superior en la selección.
piAnchorCol
Tipo: Int32%[out] Posición de columna de delimitación para la selección. Según la selección del usuario, este valor no es necesariamente la parte superior, la posición de columna izquierda en la selección. las coordenadas de Viewcol pueden incluir el espacio virtual.
piEndLine
Tipo: Int32%[out] Posición de línea de fin para la selección. Según la selección del usuario, este valor no es necesariamente la línea colocada en la selección.
piEndCol
Tipo: Int32%[out] Posición de columna de fin para la selección. Según la selección del usuario, este valor no es necesariamente según el menor, la posición de columna derecha en la selección. las coordenadas de Viewcol pueden incluir el espacio virtual.
Valor devuelto
Tipo: Int32
Implementaciones
IVsTextView.GetSelection(Int32%, Int32%, Int32%, Int32%)
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)