Sitecore 5.1.1 API

MainUtil.RemoveStart Method 

Remove the first characters from a string.

[Visual Basic]
Public Shared Function RemoveStart( _
   ByVal s As String, _
   ByVal count As Integer _
) As String
[C#]
public static string RemoveStart(
   string s,
   int count
);

Parameters

s
A string.
count
The number of characters to remove.

Return Value

The last charcters from the string.

Remarks

If count is greater than the length of the string, blank is returned.

Example

  string text = "Hello world";
  string s0 = MainUtil.RemoveStart(text, 6); // "world"

See Also

MainUtil Class | Sitecore Namespace | RemoveEnd