Back to Devexpress

GaugeControlBase.RestoreLayoutFromStream(Stream) Method

windowsforms-devexpress-dot-xtragauges-dot-win-dot-gaugecontrolbase-dot-restorelayoutfromstream-x28-system-dot-io-dot-stream-x29.md

latest2.2 KB
Original Source

GaugeControlBase.RestoreLayoutFromStream(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.

Restores the layout of gauges and their elements from the specified stream.

Namespace : DevExpress.XtraGauges.Win

Assembly : DevExpress.XtraGauges.v25.2.Win.dll

NuGet Package : DevExpress.Win.Gauges

Declaration

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

Parameters

NameTypeDescription
streamStream

A Stream descendant which stores the layout.

|

Remarks

Use the RestoreLayoutFromStream method to load the layout of gauges and their elements from the stream to which the layout was saved via the GaugeControlBase.SaveLayoutToStream method. If the specified stream is empty or null ( Nothing in Visual Basic), an exception is raised.

See Also

SaveLayoutToStream(Stream)

Save and Restore Layouts of DevExpress controls

GaugeControlBase Class

GaugeControlBase Members

DevExpress.XtraGauges.Win Namespace