Applies to
Declaration
function CollapseSel: Boolean;
Description
This method collapses the block at the current editing place, if it is inside a static or dynamic collapsible block. It does nothing if the caret is not inside such a block.
The function result returns True if some collapsing has occured, False otherwise. Reasons for no collapsing to occur are
- The caret is not located in a collapsible block;
- The block is already collapsed;
- Property WordWrap is True, or Alignment is different from taLeftJustify (the current version cannot collapse blocks in these circumstances).
See also
ExpandSel method
Topic Collapsible blocks in PlusMemo
TpmCollapsibleHandler component