[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle.Delete

Delete Method

Delete()

Deletes this style.

Use this method to remove a custom named style from the workbook. Built-in styles cannot be deleted.

Declaration
bool Delete()
Function Delete() As Boolean
Returns
Type Description
bool

true if the style is successfully deleted; otherwise, false.

Examples
IStyle style = workbook.Styles.Add("TemporaryStyle");
worksheet.Range["A1"].Style = style;
worksheet.Range["A1"].Style = workbook.Styles["Normal"];
bool deleted = style.Delete();