DocumentRangeExtensions.GetAsFrozen(DocumentRange) Method
Makes the DocumentRange object uneditable.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
public static DocumentRange GetAsFrozen(
this DocumentRange range
)
#Parameters
Name | Type | Description |
---|---|---|
range | Document |
The target document range. |
#Returns
Type | Description |
---|---|
Document |
The frozen document range. |
#Remarks
Use the GetAsFrozen 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 Document