Click or drag to resize
Pdftools logo

HighlightCreateFromQuadrilaterals Method

Create a new highlight with defined area

The highlight area is defined by the given markupArea. The returned object is associated with the targetDocument but not yet part of any page. It can be added to a page's list of annotations.

Namespace: PdfTools.Toolbox.Pdf.Annotations
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public static Highlight CreateFromQuadrilaterals(
	Document targetDocument,
	QuadrilateralList markupArea,
	Paint paint
)

Parameters

targetDocument  Document
The document in which the links is used
markupArea  QuadrilateralList
The area on the page to be highlighted.
paint  Paint
The highlight paint

Return Value

Highlight
The newly created object
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument has already been closed
ArgumentExceptionif the targetDocument is read-only
ArgumentExceptionif the markupArea is empty
ArgumentExceptionif the paint argument is not associated with targetDocument
ArgumentExceptionif the paint argument has a ColorSpace other than a device color space
ArgumentExceptionif the paint argument has a non-Transparency with BlendMode other than Normal
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif markupArea is .
ArgumentNullExceptionif paint is .
See Also