TPlusMemo.MakeCollapsibleBlock
PlusMemo Help Send comments on this topic.
TPlusMemo.MakeCollapsibleBlock

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

procedure MakeCollapsibleBlock(StartPar, StopPar: Integer);

 

Description

This method marks the specified range of paragraphs as statically collapsible.  Further to calling this method, it is possible to collapse that text range by using method CollapseBlock or CollapseSel when the editing position is inside this collapsible block.  If property CollapseHandler is assigned, this range will be visually shown as collapsible.

 

Collapsible blocks can be nested up to 15 levels.  If the start of paragraph range was already inside a collapsible block, the specified range will get a collapsible level equal to that of the outside block plus one.  In that case, if the 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 RemoveCollapsibleBlock

Method MakeSelCollapsible

TpmCollapsibleHandler component