M_WolfCurses_StringExtensions_WordWrap - Maxwolf/WolfCurses GitHub Wiki
Word wraps the given text to fit within the specified width.
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static string WordWrap(
this string text,
int width = 32
)
- text
- Type: System.String
Text to be word wrapped - width (Optional)
- Type: System.Int32
Width, in characters, to which the text should be word wrapped
Type: String
The modified text
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).
http://www.codeproject.com/Articles/51488/Implementing-Word-Wrap-in-C
Supported in: 0.1