TdxCustomGanttControl.RestoreFromIniFile(string,Boolean,Boolean,string) Method
Loads the control‘s layout from an INI file.
Declaration
procedure RestoreFromIniFile(const AStorageName: string; AChildrenCreating: Boolean = False; AChildrenDeleting: Boolean = False; const ARestoreName: string = '');
Parameters
Name | Type | Description |
---|---|---|
AStorageName | string | A path to the target INI file. |
AChildrenCreating | Boolean | Set this parameter to False to avoid creation of the control’s elements declared in the file, but absent in the control. |
AChildrenDeleting | Boolean | Set this parameter to True to allow the procedure to delete existing elements whose information is absent in the file. Otherwise, these columns follow the columns whose settings are declared in the file. |
ARestoreName | string | The control’s name in the file. The procedure uses the control’s name if you pass an empty string as the parameter value. You can omit AStorageName and use the ARestoreName value to apply settings of one control to another since its value corresponds to the ASaveName parameter value in the StoreToIniFile procedure. |
Remarks
Call this procedure to apply appearance and behavior settings stored in an INI file to the control.
You can restore the following settings for each View:
Chart View | Resource Sheet View | Timeline View |
---|---|---|
|
|
|
You can call the StoreToIniFile procedure to save the control’s settings to an INI file.