Back to Devexpress

OfficeNavigationBar.RestoreLayoutFromJson(Stream) Method

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-officenavigationbar-dot-restorelayoutfromjson-x28-system-dot-io-dot-stream-x29.md

latest2.2 KB
Original Source

OfficeNavigationBar.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 the layout from a file in JSON format.

Namespace : DevExpress.XtraBars.Navigation

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

The layout in UTF-8 encoded JSON format.

|

Remarks

Use the SaveLayoutToJson(Stream) method to save the layout to a file in JSON format.

Tip

Use the Persistence Behavior or Workspace Manager component to save and restore layouts for all DevExpress UI controls simultaneously.

See Also

SaveLayoutToJson(Stream)

OfficeNavigationBar Class

OfficeNavigationBar Members

DevExpress.XtraBars.Navigation Namespace