Table of Contents

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

CompileResult
See Also

Type

The error type

public eErrorType Type { get; }

Property Value

eErrorType
See Also

Methods

Create(eErrorType)

Creates an ExcelErrorValue from a ExcelErrorValue

public static ExcelErrorValue Create(eErrorType errorType)

Parameters

errorType eErrorType

The type of error to create

Returns

ExcelErrorValue

The ExcelErrorValue

See Also

Equals(object)

Checks if the object is equals to another

public override bool Equals(object obj)

Parameters

obj object

The object to compare

Returns

bool

True if equals

See Also

GetHashCode()

Calculates a hash code for the object

public override int GetHashCode()

Returns

int
See Also

Parse(string)

Parses a error value string and returns the ExcelErrorValue

public static ExcelErrorValue Parse(string val)

Parameters

val string

The error code

Returns

ExcelErrorValue

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

string
See Also

Operators

operator +(ExcelErrorValue, ExcelErrorValue)

Operator for addition.

public static ExcelErrorValue operator +(ExcelErrorValue v1, ExcelErrorValue v2)

Parameters

v1 ExcelErrorValue

Left side

v2 ExcelErrorValue

Right 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 object

Left side

v2 ExcelErrorValue

Right side

Returns

ExcelErrorValue

Return the error value in V2

See Also

See Also