Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Loads the control‘s layout from a stream.

#Declaration

Delphi
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