Show / Hide Table of Contents

Class Redactor.Appearance

Class used to customize the appearance of the optional redaction overlay.

Inheritance
object
Redactor.Appearance
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: pdftron.PDF
Assembly: PDFTronDotNet.dll
Syntax
public class Redactor.Appearance

Constructors

Appearance()

Declaration
public Appearance()

Fields

HorizTextAlignment

Specifies the text alignment in the overlay: align<0 -> text will be left aligned. align==0 -> text will be center aligned. align>0 -> text will be right aligned.

Declaration
public int HorizTextAlignment
Field Value
Type Description
int

RedactedContentColor

Specifies the color used to paint the regions where content was removed.

Declaration
public ColorPt RedactedContentColor
Field Value
Type Description
ColorPt
Remarks

Default value is Gray color.

ShowRedactedContentRegions

Specifies whether an overlay should be drawn in place of the redacted content. This option can be used to indicate the areas where the content was removed from without revealing the content itself.

Declaration
public bool ShowRedactedContentRegions
Field Value
Type Description
bool
Remarks

Default value is False.

TextColor

Specifies the color used to paint the text in the overlay (in RGB).

Declaration
public ColorPt TextColor
Field Value
Type Description
ColorPt

VertTextAlignment

Specifies the vertical text alignment in the overlay: align<0 -> text will be top aligned. align==0 -> text will be center aligned. align>0 -> text will be bottom aligned.

Declaration
public int VertTextAlignment
Field Value
Type Description
int

Properties

Border

Border specifies if the overlay will be surrounded by a border.

Declaration
public bool Border { get; set; }
Property Value
Type Description
bool

MaxFontSize

Specifies the maximum font size used to represent the text in the overlay.

Declaration
public double MaxFontSize { get; set; }
Property Value
Type Description
double

MinFontSize

Specifies the minimum font size used to represent the text in the overlay.

Declaration
public double MinFontSize { get; set; }
Property Value
Type Description
double

NegativeOverlayColor

NegativeOverlayColor defines the overlay background color in RGB color space for negative redactions.

Declaration
public ColorPt NegativeOverlayColor { get; set; }
Property Value
Type Description
ColorPt

PositiveOverlayColor

PositiveOverlayColor defines the overlay background color in RGB color space for positive redactions.

Declaration
public ColorPt PositiveOverlayColor { get; set; }
Property Value
Type Description
ColorPt

RedactionOverlay

If RedactionOverlay is set to true, Redactor will draw an overlay covering all redacted regions. The rest of properties in the Appearance class defines visual properties of the overlay. if false the overlay region will not be drawn.

Declaration
public bool RedactionOverlay { get; set; }
Property Value
Type Description
bool

TextFont

Specifies the font used to represent the text in the overlay.

Declaration
public Font TextFont { get; set; }
Property Value
Type Description
Font

UseOverlayText

Specifies if the text (e.g. "Redacted" etc.) should be placed on top of the overlay. The remaining properties relate to the positioning, and styling of the overlay text.

Declaration
public bool UseOverlayText { get; set; }
Property Value
Type Description
bool
In This Article
Back to top Generated by DocFX