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: StringEl 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
- 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.