Version

ApplyTo(WorksheetCell) Method

Applies the formula to the specified cell.
Syntax
public void ApplyTo( 
   WorksheetCell cell
)

Parameters

cell
The cell to apply the formula to.
Exceptions
ExceptionDescription
System.ArgumentNullExceptioncell is null.
System.InvalidOperationExceptioncell is part of an array formula or data table which is not confined to just the cell.
Remarks

This method, or one of the other ApplyTo overrides must be used to set the value of a cell to a formula.

After this method returns, the WorksheetCell.Formula of the specified cell will return 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