Compartir a través de


IVsTextView.SetSelectionMode (Método)

Establece el modo de selección.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
Function SetSelectionMode ( _
    iSelMode As TextSelMode _
) As Integer
int SetSelectionMode(
    TextSelMode iSelMode
)
int SetSelectionMode(
    [InAttribute] TextSelMode iSelMode
)
abstract SetSelectionMode : 
        iSelMode:TextSelMode -> int
function SetSelectionMode(
    iSelMode : TextSelMode
) : int

Parámetros

Valor devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

HRESULT IVsTextView::SetSelectionMode(
   [in] TextSelMode iSelMode
);

Utilice este método para establecer si la secuencia o la selección del cuadro es el modo de selección actual. Para obtener más información, vea TextSelMode.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextView Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)