Aspose::Cells::Workbook::GetDefaultStyle method

Workbook::GetDefaultStyle method

Gets or sets the default Style object of the workbook.

Style Aspose::Cells::Workbook::GetDefaultStyle()

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