string class : Length getter
Description
Gets a number of characters in the instance.
Syntax
stringInstance.Length
Arguments
None
Return value
Class | Description |
int | A number of characters in the instance. |
Sample code
//anyString is a instance of string type.
int number = anyString.Length;
Notes
It's a wrapper of the System.Globalization.StringInfo.LengthInTextElements.