Struct CellAddress
Assembly: DRIT.Spreadsheet.dll
Syntax
public struct CellAddress
Constructors
CellAddress(Cell)
Declaration
public CellAddress(Cell c)
Parameters
Type |
Name |
Description |
Cell |
c |
|
CellAddress(Boolean, Int32, Boolean, Int32)
Declaration
public CellAddress(bool absoluteRow, int row, bool absoluteColumn, int column)
Parameters
Type |
Name |
Description |
System.Boolean |
absoluteRow |
|
System.Int32 |
row |
|
System.Boolean |
absoluteColumn |
|
System.Int32 |
column |
|
CellAddress(Int32, Int32)
Construct a CellAddress based zero based row anc column indexes.
Declaration
public CellAddress(int row, int column)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Properties
AbsoluteColumn
Declaration
public bool AbsoluteColumn { get; }
Property Value
Type |
Description |
System.Boolean |
|
AbsoluteLabel
Declaration
public string AbsoluteLabel { get; }
Property Value
Type |
Description |
System.String |
|
AbsoluteRow
Declaration
public bool AbsoluteRow { get; }
Property Value
Type |
Description |
System.Boolean |
|
Column
Declaration
public int Column { get; }
Property Value
Type |
Description |
System.Int32 |
|
Label
Declaration
public string Label { get; }
Property Value
Type |
Description |
System.String |
|
Row
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Methods
ColumnFromName(String)
Declaration
public static int ColumnFromName(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Int32 |
|
Equals(CellAddress)
Declaration
public bool Equals(CellAddress other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Parse(String)
Declaration
public static CellAddress Parse(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
TryParse(String, out CellAddress)
Declaration
public static bool TryParse(string s, out CellAddress result)
Parameters
Type |
Name |
Description |
System.String |
s |
|
CellAddress |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
Addition(CellAddress, CellRelativeAddress)
Declaration
public static CellAddress operator +(CellAddress a, CellRelativeAddress b)
Parameters
Returns
Addition(CellAddress, CellSpan)
Declaration
public static CellAddress operator +(CellAddress a, CellSpan b)
Parameters
Returns
Equality(CellAddress, CellAddress)
Declaration
public static bool operator ==(CellAddress a, CellAddress b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(CellAddress, CellAddress)
Declaration
public static bool operator !=(CellAddress a, CellAddress b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Subtraction(CellAddress, CellAddress)
Declaration
public static CellRelativeAddress operator -(CellAddress a, CellAddress b)
Parameters
Returns
Subtraction(CellAddress, CellRelativeAddress)
Declaration
public static CellAddress operator -(CellAddress a, CellRelativeAddress b)
Parameters
Returns