Skip to main content

DocumentRange.BeginUpdateDocument() Method

Starts modifying the document obtained via the document's range (e.g. via selection).

Namespace: DevExpress.XtraRichEdit.API.Native

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

#Declaration

SubDocument BeginUpdateDocument()

#Returns

Type Description
SubDocument

A SubDocument instance allowing you to safely modify the document.

#Remarks

Use the DocumentRange.BeginUpdateDocument - DocumentRange.EndUpdateDocument pair to modify the document obtained via selection (i.e. by using the Document.Selection property). In that case, it is very important to distinguish different parts of the document, such as header, footer or body. The BeginUpdateDocument method implements this requirement.

See Also