Class ExcelErrorValue
Represents an Excel error.
Inheritance
System.Object
ExcelErrorValue
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Syntax
public class ExcelErrorValue
Properties
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 |
---|---|---|
System.Object | obj | The object to compare |
Returns
Type | Description |
---|---|
System.Boolean | True if equals |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Calculates a hash code for the object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
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 |
---|---|---|
System.String | val | The error code |
Returns
Type | Description |
---|---|
ExcelErrorValue |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Is thrown when |
System.ArgumentException | Is thrown when |
ToString()
Returns the string representation of the error type
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.Object | v1 | Left side |
ExcelErrorValue | v2 | Right side |
Returns
Type | Description |
---|---|
ExcelErrorValue | Return the error value in V2 |