Back to Devexpress

DocumentRange.Freeze() Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentrange-ce9da1b3.md

latest1.6 KB
Original Source

DocumentRange.Freeze() Method

Makes the current DocumentRange object uneditable.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Freeze()
vb
Sub Freeze

Remarks

Use the Freeze method to improve performance when it is necessary to retrieve information from many document ranges, i.e., syntax highlighting.

After this method is called, RichEditControl or RichEditDocumentServer stops tracking the actual document position for this range.

Important

After the DocumentRange.Freeze method is executed, the target range cannot be modified. The frozen document range becomes invalid after the document is modified. Don’t use this range for further document processing operations.

See Also

DocumentRange Interface

DocumentRange Members

DevExpress.XtraRichEdit.API.Native Namespace