Cell Class

Cell class

Encapsulates the object that represents a single Workbook cell.


type Cell struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
CalculateCalculates the formula of the cell.
GetWorksheetGets the parent worksheet.
PutValue_BoolPuts a boolean value into the cell.
PutValue_IntPuts an integer value into the cell.
PutValue_DoublePuts a double value into the cell.
PutValue_String_Bool_BoolPuts a value into the cell, if appropriate the value will be converted to other data type and cell’s number format will be reset.
PutValue_String_BoolPuts a string value into the cell and converts the value to other data type if appropriate.
PutValue_StringPuts a string value into the cell.
PutValue_DatePuts a DateTime value into the cell.
GetDateTimeValueGets the DateTime value contained in the cell.
PutValue_ObjectPuts an object value into the cell.
GetRowGets row number (zero based) of the cell.
GetColumnGets column number (zero based) of the cell.
IsFormulaRepresents if the specified cell contains formula.
GetTypeRepresents cell value type.
GetNameGets the name of the cell.
IsErrorValueChecks if the value of this cell is an error.
IsNumericValueIndicates whether the value of this cell is numeric(int, double and datetime)
GetStringValue_CellValueFormatStrategyGets the string value by specific formatted strategy.
GetStringValueGets the string value contained in the cell. If the type of this cell is string, then return the string value itself.For other cell types, the formatted string value (formatted with the specified style of this cell) will be returned.The formatted cell value is same with what you can get from excel when copying a cell as text(such ascopying cell to text editor or exporting to csv).
GetNumberCategoryTypeRepresents the category type of this cell’s number formatting.
GetDisplayStringValueGets the formatted string value of this cell by cell’s display style.
GetIntValueGets the integer value contained in the cell.
GetDoubleValueGets the double value contained in the cell.
GetFloatValueGets the float value contained in the cell.
GetBoolValueGets the boolean value contained in the cell.
GetWidthOfValueGets the width of the value in unit of pixels.
GetHeightOfValueGets the height of the value in unit of pixels.
GetDisplayStyleGets the display style of the cell.If this cell is also affected by other settings such as conditional formatting, list objects, etc.,then the display style may be different from cell.GetStyle().
GetDisplayStyle_BoolGets the display style of the cell.If the cell is conditional formatted, the display style is not same as the cell.GetStyle().
GetStyleGets the cell style.
GetStyle_BoolIf checkBorders is true, check whether other cells’ borders will effect the style of this cell.
SetStyle_StyleSets the cell style.
SetStyle_Style_BoolApply the changed property of style to the cell.
SetStyle_Style_StyleFlagApply the cell style based on flags.
GetHasCustomStyleIndicates whether this cell has custom style settings(different from the default one inheritedfrom corresponding row, column, or workbook).
GetSharedStyleIndexGets cell’s shared style index in the style pool.
GetFormulaGets or sets a formula of the .
SetFormula_StringGets or sets a formula of the .
GetFormulaLocalGet the locale formatted formula of the cell.
SetFormulaLocalGet the locale formatted formula of the cell.
GetR1C1FormulaGets or sets a R1C1 formula of the .
SetR1C1FormulaGets or sets a R1C1 formula of the .
SetFormula_String_ObjectSet the formula and the value(calculated result) of the formula.
SetFormula_String_FormulaParseOptionsSet the formula and the value(calculated result) of the formula.
GetFormula_Bool_BoolGet the formula of this cell.
SetFormula_String_FormulaParseOptions_ObjectSet the formula and the value(calculated result) of the formula.
SetArrayFormula_String_Int_IntSets an array formula(legacy array formula entered via CTRL+SHIFT+ENTER in ms excel) to a range of cells.
SetArrayFormula_String_Int_Int_FormulaParseOptionsSets an array formula to a range of cells.
SetSharedFormula_String_Int_IntSets shared formulas to a range of cells.
SetSharedFormula_String_Int_Int_FormulaParseOptionsSets shared formulas to a range of cells.
GetContainsExternalLinkIndicates whether this cell contains an external link.Only applies when the cell is a formula cell.
GetPrecedentsGets all references appearing in this cell’s formula.
IsArrayHeaderIndicates the cell’s formula is an array formulaand it is the first cell of the array.
IsDynamicArrayFormulaIndicates whether the cell’s formula is dynamic array formula(true) or legacy array formula(false).
GetArrayRangeGets the array range if the cell’s formula is an array formula.
IsArrayFormulaIndicates whether the cell formula is an array formula.
IsSharedFormulaIndicates whether the cell formula is part of shared formula.
IsTableFormulaIndicates whether this cell is part of table formula.
SetDynamicArrayFormula_String_FormulaParseOptions_BoolSets dynamic array formula and make the formula spill into neighboring cells if possible.
RemoveArrayFormulaRemove array formula.
CopyCopies data from a source cell.
GetValueGets/sets the value contained in this cell.
SetValueGets/sets the value contained in this cell.
IsStyleSetIndicates if the cell’s style is set. If return false, it means this cell has a default cell format.
CharactersReturns a Characters object that represents a range of characters within the cell text.
ReplaceReplace text of the cell with options.
InsertTextInsert some characters to the cell.If the cell is rich formatted, this method could keep the original formatting.
IsRichTextIndicates whether the string value of this cell is a rich formatted text.
IsMergedChecks if a cell is part of a merged range or not.
GetMergedRangeReturns a object which represents a merged range.
GetCommentGets the comment of this cell.
GetHtmlStringGets and sets the html string which contains data and some formats in this cell.
SetHtmlStringGets and sets the html string which contains data and some formats in this cell.
GetHtmlString_BoolGets the html string which contains data and some formats in this cell.
ToStringReturns a string represents the current Cell object.
ToJsonConvert to JSON struct data.
Equals_ObjectChecks whether this object refers to the same cell with another.
GetHashCodeServes as a hash function for a particular type.
Equals_CellChecks whether this object refers to the same cell with another cell object.
GetConditionalFormattingResultGet the result of the conditional formatting.
GetValidationGets the validation applied to this cell.
GetValidationValueGets the value of validation which applied to this cell.
GetTableGets the table which contains this cell.
IsCheckBoxStyleIndicates whether setting this cell as a check box.
SetIsCheckBoxStyleIndicates whether setting this cell as a check box.
GetRichValueGets rich value of the cell.
Dispose