TerSetWrapWidth
Set the wrap width.
bool TerSetWrapWidth( WidthChars, WidthTwips, repaint)
int WidthChars; | This parameter specifies the maximum number of characters allowed in a line to trigger word wrapping. |
int WidthTwips; | This parameter specifies the length of the line in twips for word wrapping. The actual width of the text line is calculated as following: WidthTwips - Left Margin - Left Paragraph Indentation - Right Margin - Right Paragraph Indentation. |
bool repaint; | true to repaint after this operation. |
Description: This function is available in simple word-wrap mode only (not available when the PrintView or Page Mode is turned on). To specify the wrap width in terms of the number of characters, set the WidthTwips parameter to 0. To specify the wrap width in terms of 'twips', set the WidthChars parameter to 0. To reset to regular word wrapping, set both the WidthChars and WidthTwips parameters to 0.
Return Value: This function returns true when successful.