• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct Complex

Represents the complex value type used by the spreadsheet model.

Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Spreadsheet.Formulas
Assembly: DRIT.Spreadsheet.dll
Syntax
public struct Complex

Constructors

Complex(double, double)

Initializes a new Complex for the supplied workbook data.

Declaration
public Complex(double real, double imaginary)
Parameters
Type Name Description
double real
double imaginary

Complex(double, double, char)

Initializes a new Complex for the supplied workbook data.

Declaration
public Complex(double real, double imaginary, char suffix)
Parameters
Type Name Description
double real
double imaginary
char suffix

Properties

Imaginary

Exposes the imaginary associated with Complex.

Declaration
public double Imaginary { get; }
Property Value
Type Description
double

The imaginary returned by the operation.

Module

Exposes the module associated with Complex.

Declaration
public double Module { get; }
Property Value
Type Description
double

The module returned by the operation.

Real

Exposes the real associated with Complex.

Declaration
public double Real { get; }
Property Value
Type Description
double

The real returned by the operation.

Suffix

Exposes the suffix associated with Complex.

Declaration
public char Suffix { get; }
Property Value
Type Description
char

The suffix returned by the operation.

Theta

Exposes the theta associated with Complex.

Declaration
public double Theta { get; }
Property Value
Type Description
double

The theta returned by the operation.

X

Exposes the x associated with Complex.

Declaration
public double X { get; }
Property Value
Type Description
double

The x returned by the operation.

Y

Exposes the y associated with Complex.

Declaration
public double Y { get; }
Property Value
Type Description
double

The y returned by the operation.

Methods

Conjugate()

Exposes the conjugate associated with Complex.

Declaration
public Complex Conjugate()
Returns
Type Description
Complex

The conjugate returned by the operation.

Equals(object)

Exposes the equals associated with Complex.

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

The obj used by the operation.

Returns
Type Description
bool

The equals returned by the operation.

Overrides
ValueType.Equals(object)

GetHashCode()

Retrieves the requested hash code from the Complex.

Declaration
public override int GetHashCode()
Returns
Type Description
int

The get hash code returned by the operation.

Overrides
ValueType.GetHashCode()

Parse(string)

Exposes the parse associated with Complex.

Declaration
public static Complex Parse(string value)
Parameters
Type Name Description
string value

The value used by the operation.

Returns
Type Description
Complex

The parse returned by the operation.

ToString()

Converts the supplied data for use with the Complex.

Declaration
public override string ToString()
Returns
Type Description
string

The to string returned by the operation.

Overrides
ValueType.ToString()

ToString(IFormatProvider)

Converts the supplied data for use with the Complex.

Declaration
public string ToString(IFormatProvider provider)
Parameters
Type Name Description
IFormatProvider provider

The provider used by the operation.

Returns
Type Description
string

The to string returned by the operation.

TryParse(string, out Complex)

Retrieves the requested parse from the Complex.

Declaration
public static bool TryParse(string value, out Complex complex)
Parameters
Type Name Description
string value

The value used by the operation.

Complex complex

The complex used by the operation.

Returns
Type Description
bool

The try parse returned by the operation.

Operators

operator +(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static Complex operator +(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
Complex

The operator returned by the operation.

operator /(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static Complex operator /(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
Complex

The operator returned by the operation.

operator ==(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static bool operator ==(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
bool

The operator returned by the operation.

operator !=(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static bool operator !=(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
bool

The operator returned by the operation.

operator *(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static Complex operator *(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
Complex

The operator returned by the operation.

operator *(Complex, double)

Exposes the operator associated with Complex.

Declaration
public static Complex operator *(Complex z1, double z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

double z2

The z2 used by the operation.

Returns
Type Description
Complex

The operator returned by the operation.

operator -(Complex, Complex)

Exposes the operator associated with Complex.

Declaration
public static Complex operator -(Complex z1, Complex z2)
Parameters
Type Name Description
Complex z1

The z1 used by the operation.

Complex z2

The z2 used by the operation.

Returns
Type Description
Complex

The operator returned by the operation.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX