[]
Represents a redact annotation used to mark areas containing information that needs to be erased from the document. Note that redact annotations must be explicitly applied (with a call to the Redact(RedactOptions) method or one of its overloads) to actually remove the information marked for redaction from the document.
public class RedactAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Initializes a new instance of the RedactAnnotation class.
public RedactAnnotation()
Gets or sets the list of Quadrilateral structures defining the annotation area. The coordinates of the quadrilaterals' points are relative to the upper left corner of the page's media box, with the Y (vertical) coordinates increasing from top to bottom.
Note that if the annotation is associated with more than one page, the media box of the first of those pages is used to calculate the coordinates.
If not empty, these quadrilaterals denote the content region that is intended to be redacted. If this list is empty, the Rect entry denotes the content region that is intended to be redacted.
public IReadOnlyList<Quadrilateral> Area { get; set; }
Gets or sets the justification to be used in displaying the overlay text. See PDF specification for details.
public VariableTextJustification Justification { get; set; }
Gets or sets the outline color used to highlight the annotation rectangle.
public Color? MarkBorderColor { get; set; }
Gets or sets the color used to fill the annotation rectangle.
public Color? MarkFillColor { get; set; }
Gets the DefaultAppearance object that specifies the visual properties (font, font size etc.) used to format the overlay text.
public DefaultAppearance OverlayAppearance { get; }
Gets or sets the overlay fill color with which to fill the redacted region after the affected content has been removed.
public Color OverlayFillColor { get; set; }
Gets or sets the overlay text that should be drawn over the redacted region after the affected content has been removed.
public string OverlayText { get; set; }
Gets or sets a value indicating whether the text specified by OverlayText should be repeated to fill the redacted region after the affected content has been removed.
public bool OverlayTextRepeat { get; set; }
Gets or sets the list of Quadrilateral structures defining the annotation area. The coordinates of the quadrilaterals' points are in PDF user space coordinates. The positive X axis extends horizontally to the right, and the positive Y axis extends vertically upward, with the origin usually in the lower left corner of the page.
If not empty, these quadrilaterals denote the content region that is intended to be redacted. If this list is empty, the Rect entry denotes the content region that is intended to be redacted.
public IReadOnlyList<Quadrilateral> PdfArea { get; set; }
Tessellates a polygon specified by its vertices into triangles, and adds those triangles to this annotation's Area.
public void AddPolygon(PointF[] points, FillMode fillMode = FillMode.Alternate)
points
System.Drawing.PointF[]The array of points that specify the vertices of the polygon.
fillMode
FillModeThe fill mode.