Version

DefaultTableStyle Property

Gets or sets the default style for tables in the workbook.
Syntax
public WorksheetTableStyle DefaultTableStyle {get; set;}
Exceptions
ExceptionDescription
System.ArgumentExceptionThe specified value is not in the CustomTableStyles or StandardTableStyles collections.
Remarks

This can be set to any WorksheetTableStyle in the CustomTableStyles or StandardTableStyles collection.

This will never return a null value. If it is set to null, it will be reset to the TableStyleMedium2 table style.

If this value is changed, it will not be applied to existing tables in the workbook. Only newly created tables will use default table style on the workbook.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also