[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.InvalidFormulaException

InvalidFormulaException Class

The exception that is thrown when a formula is invalid.

Inheritance
InvalidFormulaException
Implements
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class InvalidFormulaException : Exception, ISerializable
Public Class InvalidFormulaException
    Inherits Exception
    Implements ISerializable
Examples
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.Worksheets[0];

try
{
    worksheet.Range["A1"].Formula = "=SUM(A1:";
}
catch (InvalidFormulaException exception)
{
    string message = exception.Message;
}

Constructors

Name Description
InvalidFormulaException(string)

Initializes a new instance of the InvalidFormulaException class with a specified error message.