Version

CellFormat Property (WorksheetCell)

Gets the cell formatting for this cell.
Syntax
public IWorksheetCellFormat CellFormat {get;}

Property Value

The cell formatting for this cell.
Remarks

Use this property to set cell formatting specific to the cell. If you will be applying the format to numerous cells, see the CreateNewWorksheetCellFormat method for performance considerations.

If this cell belongs to a merged cell region, getting the CellFormat will get the CellFormat of the associated merged cell region.

Note: it is slightly faster to use the WorksheetRow.GetCellFormat method, which does not create a WorksheetCell instance internally. However, if a reference to the WorksheetCell instance already exists, using this property is equivalent to using the WorksheetRow.GetCellFormat method.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also