Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  string  >  TrimStart()
string class : TrimStart() method

Description

Gets a new instance of the string that removed all leading whitespace characters from the invoker string.

Syntax

stringInstance.TrimStart()

Arguments

None

Return value

ClassDescription
stringA new instance of the string that removed all leading whitespace characters from the invoker string.

Sample code

//anyString is a instance of string type.

string trimmedString = anyString.TrimStart();

Notes

It's a wrapper of the System.String.TrimStart(Char[]).

Links for reference

Copyright © Rice All rights reserved.