Click or drag to resize
ConstantsLineWrap Method
Hartismere School

[This is preliminary documentation and is subject to change.]

Wraps the given string to fit in the given width

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
public static string LineWrap(
	this string Text,
	int LineWidth
)

Parameters

Text
Type: SystemString
The text to wrap
LineWidth
Type: SystemInt32
The maximum length of each line

Return Value

Type: String
The wrapped text

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