Applies to
Declaration
procedure MakeSelCollapsible;
Description
This method marks the selected range of text as collapsible. Further to calling this method, it is possible to collapse that text range by using method CollapseSel. If property CollapseHandler is assigned, this range will be visually shown as collapsible.
Collapsible blocks can be nested up to 16 levels. If the start of selection was already inside a collapsible block, the selected range will get a collapsible level equal to that of the outside block plus one. In that case, if the selection extends outside of that outer block, it will be extended so as to end at the same position as the newly defined inner block. The first level of collapsibility is one.
See also
Topic Collapsible blocks in PlusMemo
Method ExpandSel
TpmCollapsibleHandler component