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

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

function GetBlocksStates(ParNumber: Integer): TBooleanDynArray;

 

Description

This function returns a dynamic array of boolean describing the state of static collapsible blocks for a given paragraph.  Parameter ParNumber indicates the paragraph being queried.  The resulting array has a length equal to the block nesting level at that paragraph, and each item is set to True if the corresponding level is collapsed, False if not.

 

TBooleanDynArray is a type defined in unit Types.pas that is part of the VCL.  You may need to add this unit to your uses clause in order to use method GetBlocksStates.

 

See also

Method CollapseBlock

Method ExpandBlock

Topic Collapsible blocks in PlusMemo

TpmCollapsibleHandler component