M_WolfCurses_StringExtensions_WordWrap - Maxwolf/WolfCurses GitHub Wiki

StringExtensions.WordWrap Method

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)

Syntax

C#

public static string WordWrap(
	this string text,
	int width = 32
)

Parameters

 

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

Return Value

Type: String
The modified 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).

Remarks

http://www.codeproject.com/Articles/51488/Implementing-Word-Wrap-in-C

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

StringExtensions Class
WolfCurses Namespace

⚠️ **GitHub.com Fallback** ⚠️