Aspose::Cells::Workbook::SetDefaultStyle method

Workbook::SetDefaultStyle method

Gets or sets the default Style object of the workbook.

void Aspose::Cells::Workbook::SetDefaultStyle(const Style &value)

Remarks

The DefaultStyle property is useful to implement a Style for the whole Workbook.

Examples

Aspose::Cells::Startup();
Workbook workbook;
Style defaultStyle = workbook.GetDefaultStyle();
defaultStyle.GetFont().SetName(u"Tahoma");
workbook.SetDefaultStyle(defaultStyle);
Aspose::Cells::Cleanup();

See Also