Source.NormalizeNewlines Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.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)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.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: String

    The text in which to convert the newlines.

  • newline
    Type: String

    The newline to which to convert.

Return Value

Type: 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