Class CompileResult
Compile result
Inherited Members
Namespace: OfficeOpenXml.FormulaParsing.FormulaExpressions
Assembly: EPPlus.dll
Syntax
public class CompileResult : CompileResultBase
Constructors
CompileResult(eErrorType)
Compile result with error type
Declaration
public CompileResult(eErrorType errorType)
Parameters
Type | Name | Description |
---|---|---|
eErrorType | errorType |
CompileResult(ExcelErrorValue)
Compile result with error value
Declaration
public CompileResult(ExcelErrorValue errorValue)
Parameters
Type | Name | Description |
---|---|---|
ExcelErrorValue | errorValue |
CompileResult(Object, DataType)
Constructor
Declaration
public CompileResult(object result, DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | result | The result. |
DataType | dataType | The data type of the result. |
Properties
Address
Range address
Declaration
public virtual FormulaRangeAddress Address { get; }
Property Value
Type | Description |
---|---|
FormulaRangeAddress |
DataType
Data type
Declaration
public DataType DataType { get; }
Property Value
Type | Description |
---|---|
DataType |
Empty
Returns a CompileResult with a null value and data type set to DataType.Empty
Declaration
public static CompileResult Empty { get; }
Property Value
Type | Description |
---|---|
CompileResult |
False
Returns a CompileResult instance with a boolean value of false.
Declaration
public static CompileResult False { get; }
Property Value
Type | Description |
---|---|
CompileResult |
IsDateString
Is date string
Declaration
public bool IsDateString { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsHiddenCell
Is hidden cell
Declaration
public bool IsHiddenCell { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNumeric
Is the result numeric
Declaration
public bool IsNumeric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNumericString
Is result numeric string
Declaration
public bool IsNumericString { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPercentageString
Is percentage string
Declaration
public bool IsPercentageString { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsResultOfResolvedExcelRange
Is result of resolved excelRange
Declaration
public bool IsResultOfResolvedExcelRange { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsResultOfSubtotal
Is result of subtotal
Declaration
public bool IsResultOfSubtotal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Result
RESULT
Declaration
public object Result { get; }
Property Value
Type | Description |
---|---|
System.Object |
ResultNumeric
Result numeric
Declaration
public double ResultNumeric { get; }
Property Value
Type | Description |
---|---|
System.Double |
ResultType
Result type
Declaration
public override CompileResultType ResultType { get; }
Property Value
Type | Description |
---|---|
CompileResultType |
Overrides
ResultValue
Result Value
Declaration
public object ResultValue { get; }
Property Value
Type | Description |
---|---|
System.Object |
True
Returns a CompileResult instance with a boolean value of true.
Declaration
public static CompileResult True { get; }
Property Value
Type | Description |
---|---|
CompileResult |
ZeroDecimal
Returns a CompileResult instance with a decimal value of 0.
Declaration
public static CompileResult ZeroDecimal { get; }
Property Value
Type | Description |
---|---|
CompileResult |
ZeroInt
Returns a CompileResult instance with a integer value of 0.
Declaration
public static CompileResult ZeroInt { get; }
Property Value
Type | Description |
---|---|
CompileResult |
Methods
GetErrorResult(eErrorType)
Returns a CompileResult from the error type/>
Declaration
public static CompileResult GetErrorResult(eErrorType errorType)
Parameters
Type | Name | Description |
---|---|---|
eErrorType | errorType | The type of error. |
Returns
Type | Description |
---|---|
CompileResult | The CompileResult with a the value containing the ExcelErrorValue for the type. |