Back to Devexpress

GaugeControlBase.SaveLayoutToStream(Stream) Method

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

latest2.2 KB
Original Source

GaugeControlBase.SaveLayoutToStream(Stream) Method

Saves the layout of gauges and their elements to a specific stream.

Namespace : DevExpress.XtraGauges.Win

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

NuGet Package : DevExpress.Win.Gauges

Declaration

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

Parameters

NameTypeDescription
streamStream

A Stream descendant to which the layout is written.

|

Remarks

Use the SaveLayoutToStream method to write the layout of gauges and their elements to a stream. You can then read saved settings using the GaugeControlBase.RestoreLayoutFromStream method.

Tip

You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also

RestoreLayoutFromStream(Stream)

Save and Restore Layouts of DevExpress controls

GaugeControlBase Class

GaugeControlBase Members

DevExpress.XtraGauges.Win Namespace