Android Guides | Samples

Java.Lang.String.Length Method

Returns the number of chars in this string.

Syntax

[Android.Runtime.Register("length", "()I", "")]
public Int32 Length ()

Remarks

Returns the number of chars in this string. If this string contains surrogate pairs, this is not the same as the number of code points.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1