SuspendRecalculation (Property)

Applies To:

Limit (Results limits only)

Description:

Prevents the Results limit from recalculating after modification. This greatly enhances the performance of Results limit calculations.

Note:

Use Recalculate (Method) or Process (Method) to force a recalculation when you use this property.

Action:

Read-write, Boolean

Example:

This example shows how to increase the performance of limits applied to a results set using Suspend Recalculation (Property):

var MyLimit = ActiveDocument.Sections["Results"].Limits["Units"]
MyLimit.SuspendRecalculation = true
MyLimit.SelectedValues.RemoveAll()
MyLimit.SelectedValues.Add(10)
MyLimit.SelectedValues.Add(11)
MyLimit.SelectedValues.Add(12)
MyLimit.SuspendRecalculation = false
ActiveDocument.Sections["Results].Recalculate()

Note:

Instead of calculating the results limit four times, the script above only calculates it once.