Class TextMarkupAnnotation
A text-markup annotation (PDF spec §12.5.10). Highlights, underlines, squiggly-underlines, or strikes through text on the page. The affected regions are specified as a list of Quad values stored in the /QuadPoints entry.
Inherited Members
Namespace: DRIT.Pdf.Annotations
Assembly: DRIT.Pdf.dll
Syntax
public sealed class TextMarkupAnnotation : MarkupAnnotation
Properties
MarkupType
The type of text markup (highlight, underline, squiggly, strike-out).
Declaration
public TextMarkupType MarkupType { get; set; }
Property Value
| Type | Description |
|---|---|
| TextMarkupType |
Quads
The quadrilaterals defining the marked-up text regions (/QuadPoints).
Declaration
public IReadOnlyList<Quad> Quads { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Quad> |
Methods
AddQuad(Quad)
Add a quad defining a marked-up text region.
Declaration
public void AddQuad(Quad quad)
Parameters
| Type | Name | Description |
|---|---|---|
| Quad | quad |
AddQuad(double, double, double, double)
Add a quad from an axis-aligned rectangle.
Declaration
public void AddQuad(double left, double bottom, double right, double top)
Parameters
| Type | Name | Description |
|---|---|---|
| double | left | |
| double | bottom | |
| double | right | |
| double | top |