Skip to main content

TdxCustomGanttControl.RestoreFromStream(TStream,Boolean,Boolean,string) Method

Loads the control‘s layout from a stream.

Declaration

procedure RestoreFromStream(AStream: TStream; AChildrenCreating: Boolean = False; AChildrenDeleting: Boolean = False; const ARestoreName: string = '');

Parameters

Name Type Description
AStream TStream

A stream that stores settings.

AChildrenCreating Boolean

Set this parameter to False to avoid creation of the control’s elements that are absent in the control, but information about their settings is stored in the stream.

AChildrenDeleting Boolean

Set this parameter to False to avoid deletion of existing elements whose information is absent in the stream.

ARestoreName string

The control’s name in the stream. The procedure uses the control’s name if you pass an empty string as the parameter value.

Remarks

Call this procedure to apply appearance and behavior settings stored in a stream to the control.

You can restore the following settings for each View:

Chart View

Resource Sheet View

Timeline View

You can call the StoreToStream procedure to save the control’s settings to a stream.

See Also