Gets the adjusted string.
[Visual Basic]
Public Function GetAdjustedText( _
ByVal srcText As String, _
ByVal lineMaxLength As Integer, _
ByVal wordWrapEnabled As Boolean, _
ByVal deleteNewLineChar As Boolean _
) As String
[C#]
public string GetAdjustedText(
string srcText,
int lineMaxLength,
bool wordWrapEnabled,
bool deleteNewLineChar
);
Parameters
-
srcText
- Source string.
-
lineMaxLength
- Maximum length of a line. The unit to be used is byte.
-
wordWrapEnabled
- Value that indicates whether the word wrap is used.
-
deleteNewLineChar
- Value that indicates whether newline characters are deleted.
Return Value
Returns adjusted string.
Example
How to get adjusted string.
text = ta.GetAdjustedText(targetText, 70, True, True)
text = ta.GetAdjustedText(targetText, 70, true, true);
See Also
AwTextAdjust Class | Asterworld.Text Namespace