Provides methods that manage a composite data type representing a value.

Inheritance

Implements
  • IConvertible
  • IComparable

constructor

public ExcelCalcValue()

Returns ExcelCalcValue

constructor

public ExcelCalcValue(object value)

Returns ExcelCalcValue

Returns whether this class instance contains an array value.

public bool IsArray { get; }

Returns whether this class instance contains a group of array values.

public bool IsArrayGroup { get; }

Returns whether this class instance contains a boolean value

public bool IsBoolean { get; }

Returns whether this class instance contains a DBNull value

public bool IsDBNull { get; }

Returns whether this class instance contains a DateTime value

public bool IsDateTime { get; }

Returns whether this class instance contains an error value

public bool IsError { get; }

Returns whether this class instance contains a null value

public bool IsNull { get; }

Returns whether this class instance contains a value

public bool IsReference { get; }

Returns whether this class instance contains a string value

public bool IsString { get; }

Return the underlying value

public object Value { get; }

AreValuesEqual(ExcelCalcValue, ExcelCalcValue)

Section titled "AreValuesEqual(ExcelCalcValue, ExcelCalcValue)"

Indicates if the value of the specified is equivalent to the

public static bool AreValuesEqual(ExcelCalcValue x, ExcelCalcValue y)

Parameters

  • x: ExcelCalcValue
  • y: ExcelCalcValue

Returns any

Compares current instance with the passed in instance. Returns -1, 1 or 0 depending on whether the current instance is less than, greater than or equal to the passed in instance respectively.

public int CompareTo(ExcelCalcValue value)

Parameters

  • value: ExcelCalcValue

Returns any

CompareTo(ExcelCalcValue, ExcelCalcValue)

Section titled "CompareTo(ExcelCalcValue, ExcelCalcValue)"

Compares x and y instances and returns -1 if x is less than y, 1 if x is greater than y and 0 if x and y are equal.

public static int CompareTo(ExcelCalcValue x, ExcelCalcValue y)

Parameters

  • x: ExcelCalcValue
  • y: ExcelCalcValue

Returns any

DateTimeToExcelDate(Workbook, DateTime)

Section titled "DateTimeToExcelDate(Workbook, DateTime)"

Converts a DateTime to Excel's numerical representation of a date.

public static double? DateTimeToExcelDate(Workbook workbook, DateTime dateValue)

Parameters

  • workbook: Workbook
  • dateValue: DateTime

Returns any

DateTimeToExcelDate(Workbook, DateTime, bool)

Section titled "DateTimeToExcelDate(Workbook, DateTime, bool)"

Converts a DateTime to Excel's numerical representation of a date.

public static double? DateTimeToExcelDate(Workbook workbook, DateTime dateValue, bool shouldCorrect1900Dates)

Parameters

  • workbook: Workbook
  • dateValue: DateTime
  • shouldCorrect1900Dates: bool

Returns any

ExcelDateToDateTime(Workbook, double)

Section titled "ExcelDateToDateTime(Workbook, double)"

Converts Excel's numerical representation of a date to a DateTime.

public static DateTime? ExcelDateToDateTime(Workbook workbook, double excelDate)

Parameters

  • workbook: Workbook
  • excelDate: double

Returns any

ExcelDateToDateTime(Workbook, double, bool)

Section titled "ExcelDateToDateTime(Workbook, double, bool)"

Converts Excel's numerical representation of a date to a DateTime.

public static DateTime? ExcelDateToDateTime(Workbook workbook, double excelDate, bool shouldCorrect1900Dates)

Parameters

  • workbook: Workbook
  • excelDate: double
  • shouldCorrect1900Dates: bool

Returns any

Converts Excel's numerical representation of a time of day to a TimeSpan.

public static TimeSpan ExcelDateToTimeOfDay(double excelDate, bool useDayInfo = false)

Parameters

  • excelDate: double
  • useDayInfo: bool

Returns any

Gets the resolved value of the reference. This method will walk down the reference chain recursively to get the resolved value of the reference that is not just another reference.

public object GetResolvedValue()

Returns any

Gets the resolved value of the reference. This method will walk down the reference chain recursively to get the resolved value of the reference that is not just another reference.

public object GetResolvedValue(bool willUseValueInCalculations)

Parameters

  • willUseValueInCalculations: bool

Returns any

Returns the TypeCode for this instance

public TypeCode GetTypeCode()

Returns any

Indicates if the specified has the save as this instance.

public bool IsSameValue(ExcelCalcValue value)

Parameters

  • value: ExcelCalcValue

Returns any

TimeOfDayToExcelDate(TimeSpan, bool)

Section titled "TimeOfDayToExcelDate(TimeSpan, bool)"

Converts a TimeSpan to Excel's numerical representation of a date.

public static double TimeOfDayToExcelDate(TimeSpan timeValue, bool useDayInfo = false)

Parameters

  • timeValue: TimeSpan
  • useDayInfo: bool

Returns any

Convert this class instance's value to an data type.

public ArrayProxy ToArrayProxy()

Returns any

Convert this class instance's value to an array group data type.

public ArrayProxy[] ToArrayProxyGroup()

Returns any

Convert this class instance's value to a boolean data type

public bool ToBoolean()

Returns any

Convert this class instance's value to a boolean data type

public bool ToBoolean(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a byte data type

public byte ToByte()

Returns any

Convert this class instance's value to a byte data type

public byte ToByte(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a char data type

public char ToChar()

Returns any

Convert this class instance's value to a char type

public char ToChar(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a DateTime data type

public DateTime ToDateTime()

Returns any

Convert this class instance's value to a DateTime data type

public DateTime ToDateTime(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a decimal data type

public decimal ToDecimal()

Returns any

Converts the to a decimal data type

public bool ToDecimal(out decimal result)

Parameters

  • result: decimal

Returns any

Convert this class instance's value to a decimal data type

public decimal ToDecimal(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a double data type

public double ToDouble()

Returns any

Converts the to a double data type

public bool ToDouble(out double result)

Parameters

  • result: double

Returns any

Convert this class instance's value to a double data type

public double ToDouble(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this instance's value to an

public ExcelCalcErrorValue ToErrorValue()

Returns any

Convert this class instance's value to an int

public int ToInt()

Returns any

Convert this class instance's value to an int

public int ToInt(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a short data type

public short ToInt16()

Returns any

Convert this class instance's value to a short data type

public short ToInt16(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a int data type

public int ToInt32()

Returns any

Convert this class instance's value to a int data type

public int ToInt32(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a long data type

public long ToInt64()

Returns any

Convert this class instance's value to a long data type

public long ToInt64(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this instance's value to a .

public IExcelCalcReference ToReference()

Returns any

Convert this class instance's value to a float data type

public float ToSingle()

Returns any

Convert this class instance's value to a float data type

public float ToSingle(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Returns a string representation of this instance's value.

public override string ToString()

Returns any

Convert this class instance's value to a string instance data type

public string ToString(IFormatProvider provider)

Parameters

  • provider: IFormatProvider

Returns any

Convert this class instance's value to a uint data type

public object ToType(Type conversionType, IFormatProvider provider)

Parameters

  • conversionType: Type
  • provider: IFormatProvider

Returns any