Back to Devexpress

VGridControlBase.RestoreLayoutFromStream(Stream, OptionsLayoutBase) Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-dot-restorelayoutfromstream-x28-system-dot-io-dot-stream-devexpress-dot-utils-dot-optionslayoutbase-x29.md

latest2.4 KB
Original Source

VGridControlBase.RestoreLayoutFromStream(Stream, OptionsLayoutBase) Method

SECURITY-RELATED CONSIDERATIONS

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Loads the control’s layout from a stream, using the specified options.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public virtual void RestoreLayoutFromStream(
    Stream stream,
    OptionsLayoutBase options
)
vb
Public Overridable Sub RestoreLayoutFromStream(
    stream As Stream,
    options As OptionsLayoutBase
)

Parameters

NameTypeDescription
streamStream

A System.IO.Stream object from which the control’s settings are read.

| | options | OptionsLayoutBase |

An object that specifies which options must be restored.

|

Remarks

Use the RestoreLayoutFromStream method to load the control’s layout from a stream to which a layout was saved by the VGridControlBase.SaveLayoutToStream method call.

See Also

Save and Restore Layouts of DevExpress controls

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace