Infragistics(R) NetAdvantage(R) WPF
ApplyFormula Method
See Also  E-mail your feedback on this topic.
Infragistics.Documents.Excel Namespace > WorksheetRegion Class : ApplyFormula Method

value
The formula to parse and apply to the region.
Applies a formula to the region of cells.

Syntax

Visual Basic (Declaration) 
Public Sub ApplyFormula( _
   ByVal value As String _
) 
C# 
public void ApplyFormula( 
   string value
)

Parameters

value
The formula to parse and apply to the region.

Exceptions

ExceptionDescription
System.ArgumentNullException is null or empty.
Infragistics.Documents.Excel.FormulaParseException is not a valid formula.
System.InvalidOperationException The region contains an array formula or data table which extends outside the region.

Remarks

value is parsed based on the CellReferenceMode of the Workbook to which the region belongs. If the region's Worksheet has been removed from its parent collection, the A1 CellReferenceMode will be used to parse the formula.

See Also