Class Cell
Represents a cell in a sheet.
Inheritance
System.Object
Cell
Implements
IEnumerable<System.Object>
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Cell : AbstractFormattable, ICellEnumerator, IDependencyNode, IArray, IEnumerable<object>, ICell
Properties
AbsoluteLabel
Gets the absolute address label of the cell.
Declaration
public string AbsoluteLabel { get; }
Property Value
Type |
Description |
System.String |
|
Address
Declaration
public CellAddress Address { get; }
Property Value
Gets the range of the array formula. Returns null if the the formula is not an array formula
Declaration
public Range ArrayFormulaRange { get; }
Property Value
Column
Get the column which contains the current cell.
Declaration
public Column Column { get; }
Property Value
ColumnCount
Declaration
public int ColumnCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Get or set the comment of the cell.
Declaration
public Comment Comment { get; set; }
Property Value
DateValue
Declaration
public DateTime? DateValue { get; set; }
Property Value
Type |
Description |
System.Nullable<DateTime> |
|
DisplayBorders
Get the displayed borders of the cell.
Declaration
public AbstractBorders DisplayBorders { get; }
Property Value
DisplayFill
Get the displayed background fill of the cell
Declaration
public CellFill DisplayFill { get; }
Property Value
DisplayFont
Get the displayed font weight of the cell.
Declaration
public AbstractFont DisplayFont { get; }
Property Value
DisplayHorizontalAlignment
Gets the Horizontal Alignment of the cell as it is displayed.
Declaration
public HorizontalCellAlignment DisplayHorizontalAlignment { get; }
Property Value
Gets the string representation of the cell as formatted and displayed.
Declaration
public string FormattedValue { get; }
Property Value
Type |
Description |
System.String |
|
Get or set the formula of the cell. Changing the cell may also change the value.
Declaration
public string Formula { get; set; }
Property Value
Type |
Description |
System.String |
|
HasContent
Declaration
public bool HasContent { get; }
Property Value
Type |
Description |
System.Boolean |
|
Hyperlink
Get or set the hyperlink of the current cell
Declaration
public Hyperlink Hyperlink { get; set; }
Property Value
InlineRichText
Declaration
public RichTextParagraph InlineRichText { get; set; }
Property Value
IntValue
Declaration
public int IntValue { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32, Int32]
Declaration
public object this[int row, int column] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Property Value
Type |
Description |
System.Object |
|
Label
Gets the address label of the cell.
Declaration
public string Label { get; }
Property Value
Type |
Description |
System.String |
|
Set or get the formula in the current locale.
Declaration
public string LocalizedFormula { get; set; }
Property Value
Type |
Description |
System.String |
|
Phonetics
Declaration
public PhoneticText Phonetics { get; set; }
Property Value
RichText
Declaration
public RichTextParagraph RichText { get; set; }
Property Value
Row
Get the row which contains the current cell.
Declaration
Property Value
RowCount
Declaration
public int RowCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
StringValueType
Gets the string value type of the cell.
Declaration
public StringValueType StringValueType { get; }
Property Value
Style
Get or get the style of the row or column
Declaration
public override CellStyle Style { get; set; }
Property Value
Overrides
Tag
Gets or sets an arbitrary object value that can be used to store custom information about this cell.
Declaration
public object Tag { get; set; }
Property Value
Type |
Description |
System.Object |
|
TimeSpanValue
Declaration
public TimeSpan? TimeSpanValue { get; set; }
Property Value
Type |
Description |
System.Nullable<TimeSpan> |
|
Value
Get or set the value of the cell.
Declaration
public object Value { get; set; }
Property Value
Type |
Description |
System.Object |
|
ValueType
Gets the value type of the cell.
Declaration
public ValueType ValueType { get; }
Property Value
Worksheet
Get the sheet which contains the current cell.
Declaration
public override Worksheet Worksheet { get; }
Property Value
Overrides
Methods
Declaration
public void AddComment(string author, RichTextParagraph richText)
Parameters
Declaration
public void AddComment(string author, string text)
Parameters
Type |
Name |
Description |
System.String |
author |
|
System.String |
text |
|
Declaration
public void AddConditionalFormatting(ConditionalFormatting conditionalFormatting)
Parameters
GetBoolean()
Gets the Boolean value of the cell.
Declaration
Returns
Type |
Description |
System.Boolean |
|
GetComplex()
Declaration
public Complex GetComplex()
Returns
GetDateTime()
Declaration
public DateTime GetDateTime()
Returns
Type |
Description |
DateTime |
|
GetDouble()
Declaration
public double GetDouble()
Returns
Type |
Description |
System.Double |
|
GetEnumerator()
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type |
Description |
IEnumerator<System.Object> |
|
GetInt32()
Declaration
Returns
Type |
Description |
System.Double |
|
GetString()
Declaration
public string GetString()
Returns
Type |
Description |
System.String |
|
Select()
Set the ActiveCell and Selection to this cell.
Declaration
SetValue(DateTime)
Declaration
public void SetValue(DateTime value)
Parameters
Type |
Name |
Description |
DateTime |
value |
|
SetValue(Boolean)
Declaration
public void SetValue(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
SetValue(Double)
Declaration
public void SetValue(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
SetValue(String)
Declaration
public void SetValue(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A System.String that represents the current System.Object.
|
Operators
Addition(Cell, CellRelativeAddress)
Declaration
public static Cell operator +(Cell cell, CellRelativeAddress offset)
Parameters
Returns
Implements
IEnumerable<>