String.TrimStart() : String « System « C# / C Sharp by API






String.TrimStart()

   
using System;

class MainClass
{

  public static void Main()
  {
    
    string myString18 = '(' + "  Whitespace  ".Trim() + ')';
    Console.WriteLine("'(' + \"  Whitespace  \".Trim() + ')' = " + myString18);
    string myString19 = '(' + "  Whitespace  ".TrimStart() + ')';
    Console.WriteLine("'(' + \"  Whitespace  \".TrimStart() + ')' = " + myString19);
    string myString20 = '(' + "  Whitespace  ".TrimEnd() + ')';
    Console.WriteLine("'(' + \"  Whitespace  \".TrimEnd() + ')' = " + myString20);

  }

}

   
    
    
  








Related examples in the same category

1.new String(char[] charArray)
2.String == String
3.String.Compare(String value1, String value2)
4.String.Compare(String value1, String value2, boolean case)
5.String.Concat(String value1, String value2)
6.String.Contains
7.String.Copy(String value)
8.String.Empty
9.String.EndsWith()
10.String.Equals(String aString)
11.String.Format(String format, Float aFloat);
12.String.IndexOf
13.String.IndexOfAny(char[] myChars)
14.String.Insert(int index, String value)
15.String.Join(String join, String value)
16.String.LastIndexOf
17.String.LastIndexOfAny(char[] myChars)
18.String.Length
19.String.PadLeft(int len)
20.String.PadLeft(int len, char ch)
21.String.PadRight(int len)
22.String.PadRight(int len, char ch)
23.String.Remove(int start, int end)
24.String.Replace(char ch, char ch2)
25.String.Replace(String value1, String value2)
26.String.Split(String splittor)
27.String.StartsWith()
28.String.SubString(int pos)
29.String.SubString(int start,)
30.String.ToCharArray
31.String.ToCharArray(int start,)
32.String.ToLower()
33.String.ToUpper()
34.String.Trim()
35.String.TrimEnd()