IWorkTableData
OfficeIMO.IWork
Mutable sparse scalar data for a newly created iWork table.
Inheritance
- object
- IWorkTableData
Remarks
Coordinates are one-based. Each axis supports 1–256 positions. Unset positions are empty; text is stored as text even when it begins with an equals sign. Instances are not thread safe.
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
- Method IWorkTableData.ClearCell
- Method IWorkTableData.Create
- Method IWorkTableData.SetBoolean
- Method IWorkTableData.SetNumber
- Method IWorkTableData.SetText
Accepted by parameters 3
Methods
public IWorkTableData ClearCell(int row, int column) #Returns a position to an unset empty cell.
Parameters
- row int
- column int
Returns
IWorkTableDatapublic static IWorkTableData Create(int rows, int columns) #Creates an empty table with fixed row and column counts.
Parameters
- rows int
- columns int
Returns
IWorkTableDatapublic IWorkTableCell GetCell(int row, int column) #Gets the scalar at a position, or an empty cell when it has not been set.
Parameters
- row int
- column int
Returns
IWorkTableCellpublic IWorkTableData SetBoolean(int row, int column, bool value) #Sets a boolean value, retaining its type rather than a text label.
Parameters
- row int
- column int
- value bool
Returns
IWorkTableDatapublic IWorkTableData SetNumber(int row, int column, double value) #Sets a finite IEEE-754 double as a numeric value.
Parameters
- row int
- column int
- value double
Returns
IWorkTableDatapublic IWorkTableData SetNumber(int row, int column, double value, IWorkNumberFormat numberFormat) #Sets a finite number with an immutable explicit decimal, currency, percentage or scientific format.
Parameters
- row int
- column int
- value double
- numberFormat OfficeIMO.IWork.IWorkNumberFormat
Returns
IWorkTableDatapublic IWorkTableData SetText(int row, int column, string text) #Sets text, normalizing CR/CRLF to LF and rejecting other controls and invalid UTF-16.
Parameters
- row int
- column int
- text string
Returns
IWorkTableData