Skip to main content
All docs
V26.1
  • Bar

    BarManager.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 bars from a file in JSON format.

    Namespace: DevExpress.XtraBars

    Assembly: DevExpress.XtraBars.v26.1.dll

    Declaration

    public virtual void RestoreLayoutFromJson(
        Stream utf8jsonStream
    )

    Parameters

    Name Type Description
    utf8jsonStream Stream

    Layout settings of bars in UTF-8 encoded JSON format.

    Remarks

    Use the BarManager.SaveLayoutToJson method to save layout settings to a file in JSON format.

    Note

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

    Refer to the following help topic for additional information: Saving and Restoring a Bars Layout Manually.

    See Also