Link Search Menu Expand Document

StyleEdit.GetWrappedString Method

Explanation Returns a character string that is broken at the same position as the screen display. The GetWrappedString method can only be called while StyleEdit is initialized and displayed on the screen.

Also, if Value, Width, WordWrap, WordWrapMode, LineWidthLimit, LineNumber, which affect the line feed position on the display, are changed and GetWrappedString is called before it is reflected in the display, an EXT-20 exception will be thrown. This exception indicates that StyleEdit cannot get the latest line feed position because the screen display determines the line feed position for the first time. However, even in this situation, by specifying true in the force argument, it is possible to forcibly acquire the character string before reflecting the changed property.

This method always returns a "Word Wrapped String" when run within Biz / Designer.
Added since Ver.4.1.3
Call format var s = StyleEdit1.GetWrappedString( [ force ] )
Return value
Arguments boolean force If true is specified, a character string will be returned even if the latest property settings are not reflected. If force is omitted or false is specified, an EXT-20 exception will be thrown if the latest character string cannot be obtained.
Exception EXT-20 Adjustment of the line feed position by changing the property is currently pending.
EXT-21 Cannot call GetWrappedString on an object that has not been materialized or has already been deleted
Example of use
    
Related item