Skip to main content
All docs
V26.1
  • RichEditDocumentServer.Sanitize() Method

    Sanitizes the document content according to the specified options.

    Namespace: DevExpress.XtraRichEdit

    Assembly: DevExpress.RichEdit.v26.1.Core.dll

    Declaration

    public IReadOnlyList<WordProcessingSanitizeResult> Sanitize()

    Returns

    Type Description
    IReadOnlyList<WordProcessingSanitizeResult>

    A list of results that contain information about the sanitized content.

    Remarks

    The Sanitize method overload sanitizes the following content in a document:

    • Metadata — document properties (Author, Title, Company, and custom fields)
    • Revision history — tracked changes, comments, and other revision data
    • Hidden content — hidden text, shapes, and other hidden elements

    Use the Sanitize(WordProcessingSanitizeOptions) method overload to specify the content to sanitize and the action to perform with it.

    See Also