Compartilhar via


JavaSystem.LineSeparator Method

Definition

Returns the system-dependent line separator string.

[Android.Runtime.Register("lineSeparator", "()Ljava/lang/String;", "")]
public static string LineSeparator ();
[<Android.Runtime.Register("lineSeparator", "()Ljava/lang/String;", "")>]
static member LineSeparator : unit -> string

Returns

the system-dependent line separator string

Attributes

Remarks

Returns the system-dependent line separator string. It always returns the same value - the initial value of the #getProperty(String) system propertyline.separator.

On UNIX systems, it returns "\n"; on Microsoft Windows systems it returns "\r\n".

Added in 1.7.

Java documentation for java.lang.System.lineSeparator().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to