Padding Strings : String : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String »

 

Padding Strings









    


using System;


  public class PaddingStrings
  {
    static void Main(string[] args)
    {
      string MyString = "Hello World";

      Console.WriteLine(MyString.PadLeft(5));
    }
  }


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String