Back to Devexpress

DockManager.RestoreLayoutFromJson(Stream) Method

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-dot-restorelayoutfromjson-x28-system-dot-io-dot-stream-x29.md

latest2.1 KB
Original Source

DockManager.RestoreLayoutFromJson(Stream) 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 layout settings of dock panels from a file in JSON format.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void RestoreLayoutFromJson(
    Stream utf8jsonStream
)
vb
Public Overridable Sub RestoreLayoutFromJson(
    utf8jsonStream As Stream
)

Parameters

NameTypeDescription
utf8jsonStreamStream

Layout settings of dock panels in UTF-8 encoded JSON format.

|

Remarks

Note

When restoring a layout during form load (for example, in the Form.Load event handler), first call the DockManager.ForceInitialize method, then restore the layout.

Refer to the following help topic for additional information: Saving and Restoring the Layout of Dock Panels.

See Also

SaveLayoutToJson(Stream)

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace