Sdílet prostřednictvím


String.IsBlank Property

Definition

Returns true if the string is empty or contains only Character#isWhitespace(int) white space codepoints, otherwise false.

public bool IsBlank { [Android.Runtime.Register("isBlank", "()Z", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("isBlank", "()Z", "", ApiSince=33)>]
member this.IsBlank : bool

Property Value

true if the string is empty or contains only Character#isWhitespace(int) white space codepoints, otherwise false

Attributes

Remarks

Returns true if the string is empty or contains only Character#isWhitespace(int) white space codepoints, otherwise false.

Added in 11.

Java documentation for java.lang.String.isBlank().

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