Class PdfLoadedDocument.RedactionProgressEventHandler
Delegate for handling redaction progress.
Inheritance
System.Object
PdfLoadedDocument.RedactionProgressEventHandler
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class RedactionProgressEventHandler : MulticastDelegate
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
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