Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  string  >  Length
string class : Length getter

Description

Gets a number of characters in the instance.

Syntax

stringInstance.Length

Arguments

None

Return value

ClassDescription
intA 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.

Links for reference

Copyright © Rice All rights reserved.