RepositoryItemMRUEdit.SaveItemsToStream(Stream) Method
Saves items from the RepositoryItemMRUEdit.Items collection to a stream.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A stream to which data is saved. |
#Remarks
To load data saved by the SaveItemsToStream method, use the RepositoryItemMRUEdit.LoadItemsFromStream method.
Note
If you want to save items to and load them from a Memory
The following code shows how to save items to a MRUMemoryStream and then load items back. After items are loaded, the stream is destroyed.
using DevExpress.XtraEditors.Controls;
MRUMemoryStream s = new MRUMemoryStream();
mEdit1.Properties.SaveItemsToStream(s);
//...
mEdit1.Properties.LoadItemsFromStream(s);
s.CloseStream();