Version

ApplyFormula Method (WorksheetRegion)

Applies a formula to the region of cells.
Syntax
public void ApplyFormula( 
   string value
)

Parameters

value
The formula to parse and apply to the region.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionvalue is null or empty.
FormulaParseExceptionvalue 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.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also