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.TextBasedAdventureAssembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntaxpublic static string LineWrap(
this string Text,
int LineWidth
)
<ExtensionAttribute>
Public Shared Function LineWrap (
Text As String,
LineWidth As Integer
) As String
public:
[ExtensionAttribute]
static String^ LineWrap(
String^ Text,
int LineWidth
)
[<ExtensionAttribute>]
static member LineWrap :
Text : string *
LineWidth : int -> string
Parameters
- Text
- Type: SystemString
The text to wrap - LineWidth
- Type: SystemInt32
The maximum length of each line
Return Value
Type:
StringThe 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