Skip to main content
All docs
V25.1
  • DockManager.RestoreLayoutFromJson(Stream) Method

    SECURITY NOTE

    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.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public virtual void RestoreLayoutFromJson(
        Stream utf8jsonStream
    )

    Parameters

    Name Type Description
    utf8jsonStream Stream

    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