2018-11-02 C# Console 文字列右詰め左スペース C# Console.WriteLine("{0}", ((int)1).ToString().PadLeft(10)); PadLeft()を使う。