GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ApplyAllRedactions Method
Example





In This Topic
ApplyAllRedactions Method (GdViewer)
In This Topic
Applies all redactions to the native document based on redaction annotations present in the document.
Syntax
'Declaration
 
Public Function ApplyAllRedactions() As GdPictureStatus
public GdPictureStatus ApplyAllRedactions()
public function ApplyAllRedactions(): GdPictureStatus; 
public function ApplyAllRedactions() : GdPictureStatus;
public: GdPictureStatus ApplyAllRedactions(); 
public:
GdPictureStatus ApplyAllRedactions(); 

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK. We strongly recommend always checking this status first.
Example
How to apply redactions based on redaction annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonApplyRedactions_Click(ByVal sender As Object, ByVal e As EventArgs)
    GdViewer1.ApplyAllRedactions()
    If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error!  Status: " + GdViewer1.GetStat().ToString(), "ApplyAllRedactions")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonApplyRedactions_Click(object sender, EventArgs e)
{
    GdViewer1.ApplyAllRedactions();
    if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error!  Status: " + GdViewer1.GetStat().ToString(), "ApplyAllRedactions");
}
See Also