Skip to main content
A newer version of this page is available. .

RichEditControl.HandleWindowClose Property

Gets or sets whether RichEditControl should be disposed of when a window is closed.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v19.1.dll

Declaration

public bool HandleWindowClose { get; set; }

Property Value

Type Description
Boolean

false, to prevent RichEditControl from being disposed of when a Window is closed; otherwise, true. Default is true.

Remarks

By default, the RIchEditControl is disposed of when a window is closed. This behavior is implemented due to the RichEditControl’s internal structure specifics. If you have a reason to retain a RichEditControl instance and re-use it after a window is closed, set the HandleWindowClose to false. Consider possible memory leaks in this situation.

You can destroy the control manually by calling the RichEditControl.Dispose method.

See Also