Show / Hide Table of Contents

Class ExcelErrorValue

Represents an Excel error.

Inheritance
Object
ExcelErrorValue
ExcelRichDataErrorValue
RichDataReferenceValueError
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Syntax
public class ExcelErrorValue

Properties

AsCompileResult

Returns the error as a CompileResult

Declaration
public CompileResult AsCompileResult { get; }
Property Value
Type Description
CompileResult

Type

The error type

Declaration
public eErrorType Type { get; }
Property Value
Type Description
eErrorType

Methods

Create(eErrorType)

Creates an ExcelErrorValue from a ExcelErrorValue

Declaration
public static ExcelErrorValue Create(eErrorType errorType)
Parameters
Type Name Description
eErrorType errorType

The type of error to create

Returns
Type Description
ExcelErrorValue

The ExcelErrorValue

Equals(Object)

Checks if the object is equals to another

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

The object to compare

Returns
Type Description
Boolean

True if equals

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Serves as the default hash function

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

A hash code for the current object

Overrides
System.Object.GetHashCode()

Parse(String)

Parses a error value string and returns the ExcelErrorValue

Declaration
public static ExcelErrorValue Parse(string val)
Parameters
Type Name Description
String val

The error code

Returns
Type Description
ExcelErrorValue
Exceptions
Type Condition
System.ArgumentNullException

Is thrown when val is empty

System.ArgumentException

Is thrown when val is not a valid Excel error.

System.ArgumentException

If the argument cannot be converted.

ToString()

Returns the string representation of the error type

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
System.Object.ToString()

Operators

Addition(ExcelErrorValue, ExcelErrorValue)

Operator for addition.

Declaration
public static ExcelErrorValue operator +(ExcelErrorValue v1, ExcelErrorValue v2)
Parameters
Type Name Description
ExcelErrorValue v1

Left side

ExcelErrorValue v2

Right side

Returns
Type Description
ExcelErrorValue

Return the error value in V1

Addition(Object, ExcelErrorValue)

Operator for addition.

Declaration
public static ExcelErrorValue operator +(object v1, ExcelErrorValue v2)
Parameters
Type Name Description
Object v1

Left side

ExcelErrorValue v2

Right side

Returns
Type Description
ExcelErrorValue

Return the error value in V2

See Also

eErrorType
In this article
Back to top Generated by DocFX