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

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

procedure CollapseAll(CollapseInners: Boolean = True;

                      StaticBlocks: Boolean = True;

                      DynamicBlocks: Boolean = True);

 

Description

This method collapses all the collapsible blocks that are present in a TPlusMemo.  If parameter CollapseInners is True, inner blocks are collapsed as well (blocks can be nested up to 16 levels).  If False, only outer blocks are collapsed, while inner blocks keep their previous state.  This parameter takes on the value of True if the method call does not specifies it.

 

Parameter StaticBlocks controls whether static collapsible blocks will be affected or not.  Its default value is True.  Likewise, DynamicBlocks controls whether dynamic blocks are affected.  See topic  Collapsible blocks in PlusMemo for an explanation of static and dynamic collapsible blocks.

 

Note

Property WordWrap must be False and Alignment must be taLeftJustify for this method to work in the current version.

 

See also

Method ExpandAll

Topic Collapsible blocks in PlusMemo

TpmCollapsibleHandler component