StringHelper FitString Method CleanCode C# Libraries v1.2.03 API
Fit a string into a given length, truncating or padding as necessary.

Namespace: CleanCode.Data
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public static string FitString(
	string value,
	int fitLength
)

Return Value

String truncated or padded to fit the given length.
Remarks

This operates the same as PadRight(String, Int32) as long as the initial value is not longer than the fitLength.
See Also