BCGSoft Professional Editor for MFC
int CBCGPOutlineNode::ToggleOutliningInRange ( int  nStart,
int  nEnd 
)

Expands or collapses blocks in range (by offset).

Returns
The number of expanded/collapsed blocks.

Used to toggle the expansion of all collapsible nodes within the specified range. If some regions are being expanded and some have been hidden, all the hidden regions will be expanded.

Parameters
nStartSpecifies the start of the range. It is the zero-based offset in internal buffer of the edit.
nEndSpecifies the end of the range. It is the zero-based offset in internal buffer of the edit control.