[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.Styles

Styles Property

Styles

Returns the collection of styles in the current workbook.

This property returns an IStyleCollection that provides access to the built-in and custom styles available in the workbook.

Declaration
IStyleCollection Styles { get; }
ReadOnly Property Styles As IStyleCollection
Examples
IStyleCollection styles = workbook.Styles;
IStyle style = styles.Add("DataStyle");
style.Font.Bold = true;
worksheet.Range["A1"].Style = style;