SetStyle Method

Summary

Applies a specific style as defined by a CellStyle object to a cell within a sheet. Thus, enabling the customization of cell appearance, including aspects like font, alignment, and border settings.

Syntax

TypeScript
JavaScript
Cell.prototype.setStyle = function( 
   cellStyle 
) 
setStyle( 
   cellStyle: CellStyle 
): void; 

Parameters

cellStyle

The CellStyle object that encapsulates the styling properties to be applied to the cell.

Remarks

SetStyle allows users to define and apply a comprehensive set of style properties to a cell. This includes settings for fonts, cell background color, text alignment, and border styles.

Requirements

Target Platforms

See Also

Cell Class

Cell Members

Leadtools.Document.SheetEditor Namespace

Help Version 23.0.2024.5.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.SheetEditor Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.