Realizes the 
AnnRedactionObject object currently being edited (selected).
             
             
             
            
 Syntax
Syntax
| Visual Basic (Declaration) |  | 
|---|
| Public Overridable Sub RealizeRedaction()  | 
| Visual Basic (Usage) |  Copy Code | 
|---|
| Dim instance As AnnAutomation
 
instance.RealizeRedaction()
 | 
| C# |  | 
|---|
| public virtual void RealizeRedaction() | 
| C++/CLI |  | 
|---|
| public:
virtual void RealizeRedaction();  | 
 Example
Example
 
             
| Visual Basic |  Copy Code | 
|---|
| Private Sub AnnAutomation_RealizeRedaction(ByVal automation As AnnAutomation)
 Dim redaction As AnnRedactionObject = New AnnRedactionObject()
 redaction.Left = 100
 redaction.Top = 100
 redaction.Width = 100
 redaction.Height = 100
 automation.Container.Children.Add(redaction)
 
 automation.SelectNone()
 
 
 RealizeRestoreRedaction(automation)
 
 
 automation.StartEditing(redaction, False)
 
 
 RealizeRestoreRedaction(automation)
 
 
 RealizeRestoreRedaction(automation)
 End Sub
 
 Private Sub RealizeRestoreRedaction(ByVal automation As AnnAutomation)
 
 If automation.CanRealizeRedaction Then
 
 automation.RealizeRedaction()
 MessageBox.Show("Redaction object has been realized")
 ElseIf automation.CanRestoreRedaction Then
 
 automation.RestoreRedaction()
 MessageBox.Show("Redaction object has been restored")
 Else
 MessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)")
 End If
 End Sub
 | 
| C# |  Copy Code | 
|---|
| private void AnnAutomation_RealizeRedaction(AnnAutomation automation) {
 // first add a new redaction object to the automation
 AnnRedactionObject redaction = new AnnRedactionObject();
 redaction.Left = 100;
 redaction.Top = 100;
 redaction.Width = 100;
 redaction.Height = 100;
 automation.Container.Children.Add(redaction);
 // make sure no objects are selected in the automation
 automation.SelectNone();
 
 // see if we can realize or restore the object (this should show a message informing you that no objects are currently selected (bring edited)
 RealizeRestoreRedaction(automation);
 
 // select (edit) the object we have just added
 automation.StartEditing(redaction, false);
 
 // see if we can realize/restore the object (should realize the redaction)
 RealizeRestoreRedaction(automation);
 
 // see if we can realize/restore the object (should restore the redaction)
 RealizeRestoreRedaction(automation);
 }
 
 private void RealizeRestoreRedaction(AnnAutomation automation)
 {
 // first, check if we can realize or restore the object
 if(automation.CanRealizeRedaction)
 {
 // realize
 automation.RealizeRedaction();
 MessageBox.Show("Redaction object has been realized");
 }
 else if(automation.CanRestoreRedaction)
 {
 // restore this object
 automation.RestoreRedaction();
 MessageBox.Show("Redaction object has been restored");
 }
 else
 MessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)");
 }
 | 
Remarks
             Requirements
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
 See Also
See Also