HTMLWordWrapWrapText Method
|
Alterian Email Manager 6.2.3 SDK Help File
WrapText will wrap lines after the last space, tab, or HTML tag found in each line.
Namespace:
DMLibraryAssembly:
DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420
Syntaxpublic static string WrapText(
string fullText,
int maxLineLength,
bool mustWrap
)
Public Shared Function WrapText (
fullText As String,
maxLineLength As Integer,
mustWrap As Boolean
) As String
public:
static String^ WrapText(
String^ fullText,
int maxLineLength,
bool mustWrap
)
static member WrapText :
fullText : string *
maxLineLength : int *
mustWrap : bool -> string
DMLibrary.HTMLWordWrap.WrapText = function(fullText, maxLineLength, mustWrap);
Parameters
- fullText
- Type: SystemString
Generally, multi-line string content to be wrapped. The entire contents of an HTML template would be one example. - maxLineLength
- Type: SystemInt32
The length at which the lines should be wrapped. - mustWrap
- Type: SystemBoolean
Specifies whether or not to wrap the lines even if no suitable wrap position was found. If false, the method will not wrap long lines that don't seem to have a valid wrap position, so some lines exceeding maxLineLength may be returned. If true, the method will wrap at the maxLineLength in such a situation.
Return Value
Type:
StringThe text argument string with long lines wrapped.
See Also