Click or drag to resize

imbTextFormatToolstoWidthMinimum Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Makes a String with defined minimal width. Longer strings are unchanged, shorter are expanded by charToRepeat until the width is achieved.

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string toWidthMinimum(
	this string target,
	int targetWidth,
	string charToRepeat = ""
)
Request Example View Source

Parameters

target
Type: SystemString
The target.
targetWidth
Type: SystemInt32
Targeted width
charToRepeat (Optional)
Type: SystemString
The character to repeat to extend strings shorter than target.

Return Value

Type: String
String that has at least width specified

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also