コード例 #1
0
 /// <summary>
 ///     Gets the calculation list for a reference
 /// </summary>
 /// <param name="root">The reference from where to calculate the list</param>
 /// <returns>An array of formulas that would need to be recalculated</returns>
 /// <remarks>
 ///     Given a reference, this method returns a list of formulas that would need to be recalculated when that reference
 ///     changes.
 ///     The formulas in the list will be in natural order.
 /// </remarks>
 public Formula[] GetCalculationList(IReference root)
 {
     FormulaEngine.ValidateNonNull(root, "root");
     Reference[] refs = _owner.DependencyManager.GetReferenceCalculationList((Reference)root);
     return(_owner.GetFormulasFromReferences(refs));
 }