It is time consuming on a large file, since it sets each parameter one at a time for the list of paragraphs. Is there a way to set multiple parameters with one call to... PageMemo.SetRangeParaParams(PageMemo.SelStart, PageMemo.SelLength, [pmm_SpaceBefore], m);
Yes there's. Instead of passing a single flag in the set of modified flags, you could pass all of them togere:
PageMemo.SetRangeParaParams(PageMemo.SelStart, PageMemo.SelLength,
[pmm_FirstLine
,pmm_HeadIndent
,pmm_TailIndent
,pmm_SpaceBefore
,pmm_SpaceAfter
,pmm_LineSpacing]
, m)
However, please makes sure that all fields of m record are populated as expected.
Also you might want to consider using
SetParaMetric method, instead of SetRangeParaParams. The later is looping through paragraphs only changing the desired parameters, which might be a time consuming.