Skip to main content
Table of Contents

TTMSFNCDataGridCore.SaveSettingsToFile Method

Saves the grid settings to a file for later restoration with LoadSettingsFromFile.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore

Syntax

FMX.TMSFNCDataGridCore.hppPascalC++
procedure SaveSettingsToFile(AFileName: string; AAppearanceOnly: Boolean = False); virtual;
virtual void __fastcall SaveSettingsToFile(System::UnicodeString AFileName, bool AAppearanceOnly = false);

Remarks

The published properties are serialized through the persistence layer. Individual properties can be excluded with OnCanSaveProperty. Use an appearance-only save to share a visual style between grids without copying their layout.

Parameters

Name Description
AFileName Path of the file to create or overwrite.
AAppearanceOnly When True, only appearance-related properties (colors, fills, strokes, fonts and properties whose name contains Appearance; see IsAppearanceProperty) are written. Default False saves all persisted properties.