Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts the newlines in the specified text to the specified newline.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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.
- newline
Type: System.String
The newline to which to convert.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.