

'DeclarationPublic Class Cell Inherits StyledWorksheetElement
'UsageDim instance As Cell
public class Cell : StyledWorksheetElement
Each cell is the intersection of a Row and a Column.
It can be accessed by using an address (a combination of a letter and a number, like A1, B2, C3…, where the letter is the Column Id and the number is the Row Id) or by coordinates (by specifying the Row Id first & then the Column Id, for example, 0,0; 2,3; 5;5...).
using( var doc = Workbook.Load( "test.xlsx") ) { var worksheet = doc.Worksheets[ 0 ]; worksheet.Cells[ "A1" ].Value = new DateTime( 2021, 7, 1, 10, 22, 33 ); worksheet.Cells[0, 1].Formula = “SUM(A2*4%)”; doc.Save(); }
System.Object
Xceed.Workbooks.NET.WorkbookElement
Xceed.Workbooks.NET.WorksheetElement
Xceed.Workbooks.NET.StyledWorksheetElement
Xceed.Workbooks.NET.Cell
| Name | Description | |
|---|---|---|
![]() | Address | Gets the address of the Cell. |
![]() | ColumnId | Gets the Id of the Column associated with the Cell. |
![]() | DataType | Gets the Cell's DataType. |
![]() | DataValidation | Gets or sets the Cell's DataValidation. |
![]() | Formula | Gets or sets the Cell's formula. |
![]() | RowId | Gets the Id of the Row associated with the Cell. |
![]() | Style | Gets the Style used by the Worksheet element. (Inherited from Xceed.Workbooks.NET.StyledWorksheetElement) |
![]() | Value | Gets or sets the Cell's value. |
| Name | Description | |
|---|---|---|
![]() | AddConditionalFormatting | Adds ConditionalFormatting to the Cell. |
![]() | CalculateFormula | Starts the calculation process in order to get a value from the Cell's formula. |
![]() | ClearConditionalFormattings | Removes all ConditionalFormattings from the Cell. |
![]() | CopyAndPasteTo | Copies or cuts a Cell & pastes it into another Cell. |
![]() | FormatText | Formats a specific section of the text with a selected Font. |
![]() | GetConditionalFormattings | Gets the Cell's ConditionalFormattings. |
![]() | GetValidationResult | Gets the result of the DataValidation process. |
![]() | RemoveConditionalFormatting | Removes a specific ConditionalFormatting from the Cell. |
| Name | Description | |
|---|---|---|
![]() | GetNewStyle | Overridden. |
![]() | ReadStyle | Overridden. |
![]() | Reset | Overridden. |
![]() | UpdateChildrenStyleProperty | (Inherited from Xceed.Workbooks.NET.StyledWorksheetElement) |
![]() | UpdateStyleBorders | Overridden. |
![]() | WriteStyle | Overridden. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.