WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedRedactionAnnotation

    Show / Hide Table of Contents

    Class PdfLoadedRedactionAnnotation

    Represents the PdfLoadedRedactionAnnotation.

    Inheritance
    System.Object
    PdfAnnotation
    PdfLoadedAnnotation
    PdfLoadedStyledAnnotation
    PdfLoadedRedactionAnnotation
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PdfLoadedStyledAnnotation.CheckFlatten()
    PdfLoadedStyledAnnotation.FlattenAnnotationTemplate(PdfTemplate, Boolean)
    PdfLoadedStyledAnnotation.Color
    PdfLoadedStyledAnnotation.Opacity
    PdfLoadedStyledAnnotation.InnerColor
    PdfLoadedStyledAnnotation.Text
    PdfLoadedStyledAnnotation.Author
    PdfLoadedStyledAnnotation.Subject
    PdfLoadedStyledAnnotation.ModifiedDate
    PdfLoadedStyledAnnotation.Name
    PdfLoadedStyledAnnotation.Bounds
    PdfLoadedStyledAnnotation.Location
    PdfLoadedStyledAnnotation.Size
    PdfLoadedStyledAnnotation.AnnotationFlags
    PdfLoadedAnnotation.ObjectID
    PdfLoadedAnnotation.SetText(String)
    PdfLoadedAnnotation.GetValues(String)
    PdfLoadedAnnotation.SetValues(String, String)
    PdfLoadedAnnotation.CreationDate
    PdfLoadedAnnotation.Type
    PdfLoadedAnnotation.Page
    PdfAnnotation.SetAppearance(Boolean)
    PdfAnnotation.Initialize()
    PdfAnnotation.CalculateBounds(RectangleF, PdfPage, PdfLoadedPage)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean, PdfGraphics)
    PdfAnnotation.CalculateTemplateBounds(RectangleF, PdfPageBase, PdfTemplate, Boolean)
    PdfAnnotation.FlattenPopUps
    PdfAnnotation.PdfTag
    PdfAnnotation.Layer
    PdfAnnotation.Rotate
    PdfAnnotation.PropertyChanged
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedRedactionAnnotation : PdfLoadedStyledAnnotation, IPdfWrapper, INotifyPropertyChanged
    Examples
    // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right; 
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Properties

    Border

    Get or set the border of redaction annotation

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

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    BorderColor

    Get or set the bordercolor of redaction annotation

    Declaration
    public PdfColor BorderColor { get; set; }
    Property Value
    Type Description
    PdfColor
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Flatten

    Get or set the flatten

    Declaration
    public bool Flatten { get; set; }
    Property Value
    Type Description
    System.Boolean
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //annot.Flatten=true
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //annot.Flatten=true;
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Font

    Get or set the font of redaction annotation

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

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    OverlayText

    Get or set the overlaytext of redaction annotation

    Declaration
    public string OverlayText { get; set; }
    Property Value
    Type Description
    System.String
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    RepeatText

    Get or set repeat text of redaction annotation

    Declaration
    public bool RepeatText { get; set; }
    Property Value
    Type Description
    System.Boolean
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    TextAlignment

    Get or set the text alignment of redaction annotation

    Declaration
    public PdfTextAlignment TextAlignment { get; set; }
    Property Value
    Type Description
    PdfTextAlignment
    Examples

    ///

    // PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right;
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");

    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    TextColor

    Get or set the textcolor of redaction annotation

    Declaration
    public PdfColor TextColor { get; set; }
    Property Value
    Type Description
    PdfColor
    Examples
    // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfLoadedRedactionAnnotation
    //PdfLoadedRedactionAnnotation  annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation;
    //Get the line ending style
    // annot.Bounds = new Rectangle(100, 120, 100, 100);
    //set the innercolor
    //annot.InnerColor = Color.Aqua;
    //set the bordercolor
    // annot.BorderColor = Color.Orange;
    //set the textcolor
    // annot.TextColor = Color.Yellow;
    //set the font
    //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
    //set overlaytext
    //annot.OverlayText = "Redact";
    //set textalignment
    //annot.TextAlignment = PdfTextAlignment.Right; 
    // annot.Repeat = true;
    //Saves the document to disk.
    //document.Save("redact.pdf");
    //document.Close(true);
    // System.Diagnostics.Process.Start("empty.pdf");
    //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf")
    //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation)
    //set the bounds
    //annot.Bounds = New Rectangle(100, 120, 100, 100)
    //set the innercolor
    //annot.InnerColor = Color.Aqua
    //set the bordercolor
    //annot.BorderColor = Color.Orange
    //set the textcolor
    // annot.TextColor = Color.Yellow
    //set the font
    // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10)
    //set overlaytext
    // annot.OverlayText = "Redact"
    //set the textalignment
    //annot.TextAlignment = PdfTextAlignment.Right
    //annot.Repeat = True
    //document.Save("redact.pdf")
    //document.Close(True)
    //System.Diagnostics.Process.Start("empty.pdf")
    /// 

    Methods

    Save()

    Saves an annotation.

    Declaration
    protected override void Save()
    Overrides
    PdfAnnotation.Save()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved