Click or drag to resize

imbStringWordWrapwrapLineBySpace Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Breaks specified text into lines of maximum width as specified by innerWidth. It is aware of words, so the text is splitted only at spaces - all words stay complete.

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static List<string> wrapLineBySpace(
	this string input,
	int innerWidth
)
Request Example View Source

Parameters

input
Type: SystemString
innerWidth
Type: SystemInt32

Return Value

Type: ListString
List of lines

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).
Remarks
It is ok if text is less then full line
See Also