[]
        
(Showing Draft Content)

GrapeCity.CalcEngine.CellReference

CellReference Struct

Represents a contextual cell reference.

Namespace: GrapeCity.CalcEngine
Assembly: GrapeCity.CalcEngine.dll
Syntax
public struct CellReference : IEquatable<CellReference>, IComparable<CellReference>
Public Structure CellReference
    Implements IEquatable(Of CellReference), IComparable(Of CellReference)

Constructors

Name Description
CellReference(int, int)

Initializes a new instance of the CellReference struct which represents an absolute cell reference.

CellReference(int, int, CellRelation)

Initializes a new instance of the CellReference struct.

Fields

Name Description
Empty

Empty CellReference instance.

Properties

Name Description
Column

Gets the index of the column.

Relation

Gets the relative of this CellReference with the source.

Row

Gets the index of the row.

Methods

Name Description
CompareTo(CellReference)

Compares the current CellReference with another CellReference.

Equals(CellReference)

Indicates whether the current CellReference is equal to another CellReference of the same type.

Equals(object)

Determines whether the specified object is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

SwitchReferenceType()

Switch the reference type of this CellReference.

SwitchReferenceType(CellRelation)

Switch the reference type of this CellReference to the specified.

ToAbsolute(int, int)

Returns the absolute reference of the CellReference object which relates with the context cell (specified by contextRow and contextColumn.

ToRelative(int, int)

Returns the target reference of the CellReference object which relates with the context cell (specified by contextRow and contextColumn. Position state of the CellReference is unchanged.

Operators

Name Description
operator ==(CellReference, CellReference)

Returns whether two CellReference are equals.

operator !=(CellReference, CellReference)

Returns whether two CellReference are not equals.