Skip to main content
All docs
V26.1
  • PdfDocument.ClearContent(Int32, List<OrientedRectangle>, Boolean, Boolean, Boolean, Boolean) Method

    Clears the content of a specified PDF page within the specified regions.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Pdf.v26.1.dll

    Declaration

    public void ClearContent(
        int pageIndex,
        List<OrientedRectangle> regions,
        bool clearText = true,
        bool clearImages = true,
        bool clearGraphics = true,
        bool clearAnnotations = true
    )

    Parameters

    Name Type Description
    pageIndex Int32

    The index of the target page.

    regions List<OrientedRectangle>

    A list of regions to clear on the page.

    Optional Parameters

    Name Type Default Description
    clearText Boolean True

    true to clear text content; otherwise, false.

    clearImages Boolean True

    true to clear image content; otherwise, false.

    clearGraphics Boolean True

    true to clear graphic content; otherwise, false.

    clearAnnotations Boolean True

    true to clear annotations; otherwise, false.

    See Also