Cells Class

Cells class

Encapsulates a collection of cell relevant objects, such as , , …etc.


type Cells struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetOdsCellFieldsGets the list of fields of ods.
DisposePerforms application-defined tasks associated with freeing, releasing, orresetting unmanaged resources.
GetCountGets the total count of instantiated Cell objects.
GetCountLargeGets the total count of instantiated Cell objects.
GetEnumeratorGets the cells enumerator.
GetRowsGets the collection of Row objects that represents the individual rows in this worksheet.
GetMergedAreasGets all merged cells.
CheckCellGets the Cell element or null at the specified cell row index and column index.
CheckRowGets the Row element or null at the specified cell row index.
CheckColumnGets the Column element or null at the specified column index.
IsRowHiddenChecks whether a row at given index is hidden.
IsColumnHiddenChecks whether a column at given index is hidden.
AddRangeAdds a range object reference to cells
CreateRange_String_StringCreates a Range object from a range of cells.
CreateRange_Int_Int_Int_IntCreates a Range object from a range of cells.
CreateRange_StringCreates a Range object from an address of the range.
CreateRange_Int_Int_BoolCreates a Range object from rows of cells or columns of cells.
Get_Int_IntGets the Cell element at the specified cell row index and column index.
Get_StringGets the Cell element at the specified cell name.
GetMultiThreadReadingGets or sets whether the cells data model should support Multi-Thread reading.Default value of this property is false.
SetMultiThreadReadingGets or sets whether the cells data model should support Multi-Thread reading.Default value of this property is false.
GetMemorySettingGets or sets the memory usage option for this cells.
SetMemorySettingGets or sets the memory usage option for this cells.
ClearClears all data of the worksheet.
GetStyleGets and sets the default style of the worksheet.
SetStyleGets and sets the default style of the worksheet.
IsDefaultColumnHidden
SetIsDefaultColumnHidden
GetStandardWidthInchGets or sets the default column width in the worksheet, in unit of inches.
SetStandardWidthInchGets or sets the default column width in the worksheet, in unit of inches.
GetStandardWidthPixelsGets or sets the default column width in the worksheet, in unit of pixels.
SetStandardWidthPixelsGets or sets the default column width in the worksheet, in unit of pixels.
GetStandardWidthGets or sets the default column width in the worksheet, in unit of characters.
SetStandardWidthGets or sets the default column width in the worksheet, in unit of characters.
GetStandardHeightGets or sets the default row height in this worksheet, in unit of points.
SetStandardHeightGets or sets the default row height in this worksheet, in unit of points.
GetStandardHeightPixelsGets or sets the default row height in this worksheet, in unit of pixels.
SetStandardHeightPixelsGets or sets the default row height in this worksheet, in unit of pixels.
GetStandardHeightInchGets or sets the default row height in this worksheet, in unit of inches.
SetStandardHeightInchGets or sets the default row height in this worksheet, in unit of inches.
ImportFormulaArrayImports an array of formula into a worksheet.
TextToColumnsSplits content in specified column into multiple columns..
ImportCSV_String_String_Bool_Int_IntImport a CSV file to the cells.
ImportCSV_Stream_String_Bool_Int_IntImport a CSV file to the cells.
ImportCSV_String_TxtLoadOptions_Int_IntImport a CSV file to the cells.
ImportCSV_Stream_TxtLoadOptions_Int_IntImport a CSV file to the cells.
GetPreserveStringGets or sets a value indicating whether all worksheet values are preserved as strings.Default is false.
SetPreserveStringGets or sets a value indicating whether all worksheet values are preserved as strings.Default is false.
Merge_Int_Int_Int_IntMerges a specified range of cells into a single cell.
Merge_Int_Int_Int_Int_BoolMerges a specified range of cells into a single cell.
Merge_Int_Int_Int_Int_Bool_BoolMerges a specified range of cells into a single cell.
UnMergeUnmerges a specified range of merged cells.
ClearMergedCellsClears all merged ranges.
HideRowHides a row.
UnhideRowUnhides a row.
HideRowsHides multiple rows.
UnhideRowsUnhides the hidden rows.
SetRowHeightPixelSets row height in unit of pixels.
SetRowHeightInchSets row height in unit of inches.
SetRowHeightSets the height of the specified row.
GetRowHeight_Int_Bool_CellsUnitTypeGets row’s height.
GetColumnWidth_Int_Bool_CellsUnitTypeGets the column width.
HideColumnHides a column.
UnhideColumnUnhides a column
HideColumnsHide multiple columns.
UnhideColumnsUnhide multiple columns.
GetRowHeight_IntGets the height of a specified row, in unit of points.
GetViewRowHeightGets the height of a specified row.
GetRowHeightInchGets the height of a specified row in unit of inches.
GetViewRowHeightInchGets the height of a specified row in unit of inches.
GetRowHeightPixelGets the height of a specified row in unit of pixel.
SetColumnWidthPixelSets column width in unit of pixels in normal view.
SetColumnWidthInchSets column width in unit of inches in normal view.
SetColumnWidthSets the width of the specified column in normal view.
GetColumnWidthPixelGets the width of the specified column in normal view, in units of pixel.
GetColumnWidth_IntGets the width(in unit of characters) of the specified column in normal view
GetViewColumnWidthPixelGet the width in different view type.
SetViewColumnWidthPixelSets the width of the column in different view.
GetMinRowMinimum row index of cell which contains data or style.
GetMaxRowMaximum row index of cell which contains data or style.
GetMinColumnMinimum column index of those cells that have been instantiated in the collection(does not include the columnwhere style is defined for the whole column but no cell has been instantiated in it).
GetMaxColumnMaximum column index of those cells that have been instantiated in the collection(does not include the columnwhere style is defined for the whole column but no cell has been instantiated in it).
GetMinDataRowMinimum row index of cell which contains data.
GetMaxDataRowMaximum row index of cell which contains data.
GetMinDataColumnMinimum column index of cell which contains data.
GetMaxDataColumnMaximum column index of cell which contains data.
GetLastDataRowGets the last row index of cell which contains data in the specified column.
GetFirstDataRowGets the first row index of cell which contains data in the specified column.
IsDefaultRowHeightMatchedIndicates that row height and default font height matches
SetIsDefaultRowHeightMatchedIndicates that row height and default font height matches
IsDefaultRowHiddenIndicates whether the row is default hidden.
SetIsDefaultRowHiddenIndicates whether the row is default hidden.
GetColumnsGets the collection of Column objects that represents the individual columns in this worksheet.
ApplyColumnStyleApplies formats for a whole column.
ApplyRowStyleApplies formats for a whole row.
ApplyStyleApplies formats for a whole worksheet.
CopyColumns_Cells_Int_Int_Int_PasteOptionsCopies data and formats of a whole column.
CopyColumnCopies data and formats of a whole column.
CopyColumns_Cells_Int_Int_IntCopies data and formats of a whole column.
CopyColumns_Cells_Int_Int_Int_IntCopies data and formats of the whole columns.
CopyRowCopies data and formats of a whole row.
CopyRows_Cells_Int_Int_IntCopies data and formats of some whole rows.
CopyRows_Cells_Int_Int_Int_CopyOptionsCopies data and formats of some whole rows.
CopyRows_Cells_Int_Int_Int_CopyOptions_PasteOptionsCopies data and formats of some whole rows.
GetGroupedRowOutlineLevelGets the outline level (zero-based) of the row.
GetGroupedColumnOutlineLevelGets the outline level (zero-based) of the column.
GetMaxGroupedColumnOutlineLevelGets the max grouped column outline level (zero-based).
GetMaxGroupedRowOutlineLevelGets the max grouped row outline level (zero-based).
ShowGroupDetailExpands the grouped rows/columns.
HideGroupDetailCollapses the grouped rows/columns.
UngroupColumnsUngroups columns.
GroupColumns_Int_IntGroups columns.
GroupColumns_Int_Int_BoolGroups columns.
UngroupRows_Int_Int_BoolUngroups rows.
UngroupRows_Int_IntUngroups rows.
GroupRows_Int_Int_BoolGroups rows.
GroupRows_Int_IntGroups rows.
DeleteColumn_Int_BoolDeletes a column.
DeleteColumn_IntDeletes a column.
DeleteColumns_Int_Int_BoolDeletes several columns.
DeleteColumns_Int_Int_DeleteOptionsDeletes several columns.
IsDeletingRangeEnabledCheck whether the range could be deleted.
DeleteRow_IntDeletes a row.
DeleteRow_Int_BoolDeletes a row.
DeleteRows_Int_IntDeletes multiple rows.
DeleteRows_Int_Int_BoolDeletes multiple rows in the worksheet.
DeleteRows_Int_Int_DeleteOptionsDeletes multiple rows in the worksheet.
DeleteBlankColumnsDelete all blank columns which do not contain any data.
DeleteBlankColumns_DeleteOptionsDelete all blank columns which do not contain any data.
IsBlankColumnChecks whether given column is blank(does not contain any data).
DeleteBlankRowsDelete all blank rows which do not contain any data or other object.
DeleteBlankRows_DeleteOptionsDelete all blank rows which do not contain any data or some special objects such as visible comment, pivot table.
InsertColumns_Int_IntInserts some columns into the worksheet.
InsertColumns_Int_Int_BoolInserts some columns into the worksheet.
InsertColumns_Int_Int_InsertOptionsInserts some columns into the worksheet.
InsertColumn_Int_BoolInserts a new column into the worksheet.
InsertColumn_IntInserts a new column into the worksheet.
InsertRows_Int_Int_BoolInserts multiple rows into the worksheet.
InsertRows_Int_Int_InsertOptionsInserts multiple rows into the worksheet.
InsertRows_Int_IntInserts multiple rows into the worksheet.
InsertRowInserts a new row into the worksheet.
GetRangesGets the collection of Range objects created at run time.
ClearRange_CellAreaClears contents and formatting of a range.
ClearRange_Int_Int_Int_IntClears contents and formatting of a range.
ClearContents_CellAreaClears contents of a range.
ClearContents_Int_Int_Int_IntClears contents of a range.
ClearFormats_CellAreaClears formatting of a range.
ClearFormats_Int_Int_Int_IntClears formatting of a range.
GetLastCellGets the last cell in this worksheet.
LinkToXmlMapLink to a xml map.
GetMaxDisplayRangeGets the max range which includes data, merged cells and shapes.
GetFirstCellGets the first cell in this worksheet.
Find_Object_CellFinds the cell containing with the input object.
Find_Object_Cell_FindOptionsFinds the cell containing with the input object.
EndCellInRow_IntGets the last cell in this row.
EndCellInColumn_IntGets the last cell in this column.
EndCellInColumn_Int_Int_Int_IntGets the last cell with maximum column index in this range.
EndCellInRow_Int_Int_Int_IntGets the last cell with maximum row index in this range.
MoveRangeMoves the range.
InsertCutCellsInsert cut range.
InsertRange_CellArea_Int_ShiftType_BoolInserts a range of cells and shift cells according to the shift option.
InsertRange_CellArea_ShiftTypeInserts a range of cells and shift cells according to the shift option.
InsertRange_CellArea_Int_ShiftTypeInserts a range of cells and shift cells according to the shift option.
DeleteRangeDeletes a range of cells and shift cells according to the shift option.
ExportArrayExports data in the Cells collection to a two-dimension array object.
RetrieveSubtotalSettingRetrieves subtotals setting of the range.
Subtotal_CellArea_Int_ConsolidationFunction_int32ArrayCreates subtotals for the range.
Subtotal_CellArea_Int_ConsolidationFunction_int32Array_Bool_Bool_BoolCreates subtotals for the range.
RemoveFormulasRemoves all formula and replaces with the value of the formula.
RemoveDuplicatesRemoves duplicate rows in the sheet.
RemoveDuplicates_Int_Int_Int_IntRemoves duplicate values in the range.
RemoveDuplicates_Int_Int_Int_Int_Bool_int32ArrayRemoves duplicate data of the range.
ConvertStringToNumericValueConverts all string data in the worksheet to numeric value if possible.
GetDependentsGet all cells which refer to the specific cell.
GetDependentsInCalculationGets all cells whose calculated result depends on specific cell.
GetCellsWithPlaceInCellPictureGets all cells that contain embedded picture.
GetCellStyleGet the style of given cell.
GetCellDisplayStyle_Int_IntGet the display style of given cell.
GetCellDisplayStyle_Int_Int_BorderTypeGet the display style of given cell.