Class ExcelErrorValue
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Represents an Excel error.
public class ExcelErrorValue
- Inheritance
-
ExcelErrorValue
- Derived
- Inherited Members
Properties
AsCompileResult
Returns the error as a CompileResult
public CompileResult AsCompileResult { get; }
Property Value
- See Also
Type
The error type
public eErrorType Type { get; }
Property Value
- See Also
Methods
Create(eErrorType)
Creates an ExcelErrorValue from a ExcelErrorValue
public static ExcelErrorValue Create(eErrorType errorType)
Parameters
errorType
eErrorTypeThe type of error to create
Returns
- See Also
Equals(object)
Checks if the object is equals to another
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare
Returns
- bool
True if equals
- See Also
GetHashCode()
Calculates a hash code for the object
public override int GetHashCode()
Returns
- See Also
Parse(string)
Parses a error value string and returns the ExcelErrorValue
public static ExcelErrorValue Parse(string val)
Parameters
val
stringThe error code
Returns
Exceptions
- ArgumentNullException
Is thrown when
val
is empty- ArgumentException
Is thrown when
val
is not a valid Excel error.- ArgumentException
If the argument cannot be converted.
- See Also
ToString()
Returns the string representation of the error type
public override string ToString()
Returns
- See Also
Operators
operator +(ExcelErrorValue, ExcelErrorValue)
Operator for addition.
public static ExcelErrorValue operator +(ExcelErrorValue v1, ExcelErrorValue v2)
Parameters
v1
ExcelErrorValueLeft side
v2
ExcelErrorValueRight side
Returns
- ExcelErrorValue
Return the error value in V1
- See Also
operator +(object, ExcelErrorValue)
Operator for addition.
public static ExcelErrorValue operator +(object v1, ExcelErrorValue v2)
Parameters
v1
objectLeft side
v2
ExcelErrorValueRight side
Returns
- ExcelErrorValue
Return the error value in V2
- See Also