Variable width fields in String.Format

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kelvin.koogan@googlemail.com

    #1

    Variable width fields in String.Format

    Does .NET have an equivalent to using * to specify the width of a
    field in printf? I.e. is there an equivalent to:

    printf(“%*s”, width, “String”)

    when using String.Format or similar?

    TIA,
    KK
Working...