menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Delegate PdfLoadedDocument.RedactionProgressEventHandler - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Delegate PdfLoadedDocument.RedactionProgressEventHandler

    Delegate for handling redaction progress.

    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public delegate void RedactionProgressEventHandler(object sender, RedactionProgressEventArgs arguments);
    Parameters
    Type Name Description
    System.Object sender
    RedactionProgressEventArgs arguments
    Examples
    PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
    // Get first page from the document
    PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
    PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System.Drawing.Color.Black);
    //Adds redaction to the loaded page
    page.Redactions.Add(redaction);           
    document.RedactionProgress += redaction_TrackProgress;
    //Save the document
    document.Save("output.pdf");
    document.Close(true);         
    // Event handler for Track redaction process
      void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments)
      {
        MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed"));
      }
     
    Dim document As PdfLoadedDocument =  New PdfLoadedDocument("input.pdf") 
    'Get first page from the document
    Dim page As PdfLoadedPage =  document.Pages(0) as PdfLoadedPage 
    Dim redaction As PdfRedaction =  New PdfRedaction(New RectangleF(37,94,50,10),System.Drawing.Color.Black) 
    'Adds redaction to the loaded page
    page.Redactions.Add(redaction)           
    document.RedactionProgress += redaction_TrackProgress
    'Save the document
    document.Save("output.pdf")
    document.Close(True)         
    'Event handler for Track redaction process
    Private  Sub redaction_TrackProgress(ByVal sender As Object, ByVal arguments As RedactionProgressEventArgs)
      MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed"))
    End Sub		

    Constructors

    RedactionProgressEventHandler(Object, IntPtr)

    Declaration
    public RedactionProgressEventHandler(object object, IntPtr method)
    Parameters
    Type Name Description
    System.Object object
    System.IntPtr method

    Methods

    BeginInvoke(Object, RedactionProgressEventArgs, AsyncCallback, Object)

    Declaration
    public virtual IAsyncResult BeginInvoke(object sender, RedactionProgressEventArgs arguments, AsyncCallback callback, object object)
    Parameters
    Type Name Description
    System.Object sender
    RedactionProgressEventArgs arguments
    System.AsyncCallback callback
    System.Object object
    Returns
    Type
    System.IAsyncResult

    EndInvoke(IAsyncResult)

    Declaration
    public virtual void EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    System.IAsyncResult result

    Invoke(Object, RedactionProgressEventArgs)

    Declaration
    public virtual void Invoke(object sender, RedactionProgressEventArgs arguments)
    Parameters
    Type Name Description
    System.Object sender
    RedactionProgressEventArgs arguments
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved