Sitecore 5.0 API

StringUtil.Right Method 

Gets the rightmost part of a string.

[Visual Basic]
Public Shared Function Right( _
   ByVal text As String, _
   ByVal length As Integer _
) As String
[C#]
public static string Right(
   string text,
   int length
);

Parameters

text
A string.
length
The number of charcters to return.

Return Value

The rightmost length characters.

Example

  string text = StringUtil.Right("Hello world", 5); // "world"

See Also

StringUtil Class | Sitecore Namespace | Left | Mid