TTMSFNCDataGridCore.CanSaveProperty Method
Decides whether a property is written when settings are saved through the persistence interface.
API unit family: TMSFNCDataGridCore
Declaring type: TTMSFNCDataGridCore
Syntax
function CanSaveProperty(AObject: TObject; APropertyName: string; APropertyType: TTypeKind): Boolean; virtual;
virtual bool __fastcall CanSaveProperty(System::TObject* AObject, System::UnicodeString APropertyName, System::TTypeKind APropertyType);
Remarks
Properties of the core itself that are on the internal exclude list are refused. During an appearance-only save (SaveSettingsToFile with AAppearanceOnly = True) only properties accepted by IsAppearanceProperty are kept. The result is then passed to OnCanSaveProperty, which can override it.
Parameters
| Name | Description |
|---|---|
AObject |
Object that owns the property being saved (the core itself or one of its sub-objects). |
APropertyName |
Name of the property being saved. |
APropertyType |
Type kind of the property. |
Returns
True when the property may be saved.