DXRichEditBehaviorOptions.KeepStreamInDocumentSource Property
Specifies whether to retain the reference to the stream from which the document is loaded as the RichEditControl.DocumentSource property value. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v24.2.dll
NuGet Package: DevExpress.Wpf.RichEdit
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true, to update the Rich The default value is false. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Keep |
---|---|
Rich |
|
#Remarks
When the document is loaded from a stream using one the RichEditControl.LoadDocument method overrides, the RichEditControl.DocumentSource property does not reference the Stream instance, but contains the StreamSource object instead. This behavior allows you to safely reduce the stream by the garbage collector.
To change this behavior and keep the stream reference as a RichEditControl.DocumentSource property value, set KeepStreamInDocumentSource to true. Note that in this case, the garbage collector will not be able to collect the target Stream instance.
Note
If the Rich