Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

SpreadsheetClipboardOptions.KeepThemeFonts Property

Gets or sets whether to keep the current workbook’s major and minor theme fonts when its data is copied to an external spreadsheet application.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

[DefaultValue(false)]
public bool KeepThemeFonts { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to keep the document’s theme fonts; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to KeepThemeFonts
WinForms Controls SpreadsheetControlOptions
.Clipboard.KeepThemeFonts
Office File API DocumentOptions
.Clipboard.KeepThemeFonts

Remarks

If you copy data from the SpreadsheetControl to an external spreadsheet application (another SpreadsheetControl instance or Microsoft® Excel®), theme formatting can change for the copied data to use the destination workbook’s theme colors and fonts.

Spreadsheet_KeepTheme_False

To preserve theme formatting for copied data, set the source workbook’s KeepThemeColors and KeepThemeFonts properties to true. In this case, theme colors are converted to the corresponding custom RGB colors, and theme fonts become user-defined fonts with the font scheme None.

Spreadsheet_KeepTheme_True

If you programmatically copy data between workbooks with different themes applied, you can use the following properties to preserve the source workbook’s theme colors and fonts:

See Also