Condividi tramite


IEditorOperations.NormalizeLineEndings Method

Replaces all the line endings that do not match the specified string.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Dichiarazione
Function NormalizeLineEndings ( _
    replacement As String _
) As Boolean
bool NormalizeLineEndings(
    string replacement
)
bool NormalizeLineEndings(
    String^ replacement
)
abstract NormalizeLineEndings : 
        replacement:string -> bool 
function NormalizeLineEndings(
    replacement : String
) : boolean

Parameters

  • replacement
    Type: System.String
    The character sequence with which to replace the line endings.

Return Value

Type: System.Boolean
true if the edit succeeded, otherwise false.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace