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

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

function ExpandBlock(ParNumber: Integer; Level: Integer): Boolean;

 

Description

This method expands the block at a given paragraph specified by parameter ParNumber, if that paragraph is inside a collapsible block at a level greater or equal to parameter Level and that level has been collapsed.  It does nothing if the paragraph in question is not inside a collapsed block at that level.

 

The function result returns True if some expansion occured, False otherwise.  Reasons for no expansion to occur are

 

- The paragraph in question is not located inside a collapsible block that is at least Level in nesting;

- The specified block level is not collapsed.

 

See also

Method CollapseBlock

Topic Collapsible blocks in PlusMemo

TpmCollapsibleHandler component