Table of Contents

Class CadSheetCell

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

One cell of a spreadsheet as a data link reads it: its value, the words it shows (a number as its format makes it, 0.5 in the format 0% shown 50%), and, from a workbook, the few marks of its look a table takes over (Alignment, Fill and FontColor).

public sealed class CadSheetCell
Inheritance
CadSheetCell
Inherited Members

Constructors

CadSheetCell(CadSheetCellKind, string, double)

Makes a cell.

Properties

Alignment

Gets or sets the horizontal alignment the workbook gives the cell: 0 general, 1 left, 2 centre, 3 right.

Empty

A cell with nothing in it.

Fill

Gets or sets the fill the workbook gives the cell as 0xRRGGBB; null for none.

FontColor

Gets or sets the colour of the cell's words as 0xRRGGBB; null where the workbook gives none.

Kind

Gets what the cell holds.

Number

Gets the value of a number, a date or a boolean; nought for the rest.

Text

Gets the words the cell shows; empty for an empty cell.

Methods

OfNumber(double)

Gives a cell of a number, shown as R shows it (12 as 12, 0.25 as 0.25).

OfText(string)

Gives a cell of words.

ToString()

Gives the cell as a line for debugging: its words.