Back to Devexpress

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

vcl-dxganttcontrol-dot-tdxcustomganttcontrol-dot-restorefromstream-x28-system-dot-classes-dot-tstream-system-dot-boolean-system-dot-boolean-system-dot-string-x29.md

latest3.7 KB
Original Source

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

NameTypeDescription
AStreamTStream

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

RestoreFromIniFile

RestoreFromRegistry

TdxCustomGanttControl Class

TdxCustomGanttControl Members

dxGanttControl Unit