Compartir a través de


IEditorOperations.ReplaceSelection (Método)

Reemplaza la selección de texto con el texto especificado.

Espacio de nombres:  Microsoft.VisualStudio.Text.Operations
Ensamblado:  Microsoft.VisualStudio.Text.UI (en Microsoft.VisualStudio.Text.UI.dll)

Sintaxis

'Declaración
Function ReplaceSelection ( _
    text As String _
) As Boolean
bool ReplaceSelection(
    string text
)
bool ReplaceSelection(
    String^ text
)
abstract ReplaceSelection : 
        text:string -> bool
function ReplaceSelection(
    text : String
) : boolean

Parámetros

  • text
    Tipo: String

    El texto que se va a usar como reemplazo.

Valor devuelto

Tipo: Boolean
true si la edición se realizó correctamente; de lo contrario, false.

Excepciones

Excepción Condición
ArgumentNullException

text es nullreferencia null (Nothing en Visual Basic).

Seguridad de .NET Framework

Vea también

Referencia

IEditorOperations Interfaz

Microsoft.VisualStudio.Text.Operations (Espacio de nombres)