Source.NormalizeNewlines Method

Converts the newlines in the specified text to the specified newline.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Function NormalizeNewlines ( _
    input As String, _
    newline As String _
) As String
public string NormalizeNewlines(
    string input,
    string newline
)
public:
String^ NormalizeNewlines(
    String^ input, 
    String^ newline
)
member NormalizeNewlines : 
        input:string * 
        newline:string -> string
public function NormalizeNewlines(
    input : String, 
    newline : String
) : String

Parameters

  • input
    Type: System.String

    The text in which to convert the newlines.

Return Value

Type: System.String
Returns a string containing the converted text.

Remarks

This method is used to convert carriage returns, line feeds, and carriage return/line feeds to the specified newline string.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace