When coding in C++, I can do something like:

```
sprintf(result, "%5.5s", stringValue);

```

This will ensure that the value printed is always 5 characters long, padding or truncating as required.

I find myself requiring the same feature in C# using String.Format:-

```
String.Format("{0,5}", stringValue);

```

Whilst this is fine for shorter values, it does not truncate longer values.

What is the best solution for this?