C#
VB
C++
Realizes the AnnRedactionObject object currently being edited (selected).
public virtual void RealizeRedaction() Public Overridable Sub RealizeRedaction()
public:virtual void RealizeRedaction();
Use the CanRealizeRedaction property to determine whether you can currently call this method.
This method will call the Realize method of the AnnRedactionObject class.
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_RealizeRedaction(AnnAutomation automation){// first add a new redaction object to the automationAnnRedactionObject redaction = new AnnRedactionObject();redaction.Rect = new Rect(100, 100, 100, 100);automation.Container.Children.Add(redaction);// make sure no objects are selected in the automationautomation.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 addedautomation.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 objectif (automation.CanRealizeRedaction){// realizeautomation.RealizeRedaction();MessageBox.Show("Redaction object has been realized");}else if (automation.CanRestoreRedaction){// restore this objectautomation.RestoreRedaction();MessageBox.Show("Redaction object has been restored");}elseMessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)");}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_RealizeRedaction(ByVal automation As AnnAutomation)' first add a new redaction object to the automationDim redaction As AnnRedactionObject = New AnnRedactionObject()redaction.Rect = New Rect(100, 100, 100, 100)automation.Container.Children.Add(redaction)' make sure no objects are selected in the automationautomation.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 addedautomation.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)End SubPrivate Sub RealizeRestoreRedaction(ByVal automation As AnnAutomation)' first, check if we can realize or restore the objectIf automation.CanRealizeRedaction Then' realizeautomation.RealizeRedaction()MessageBox.Show("Redaction object has been realized")ElseIf automation.CanRestoreRedaction Then' restore this objectautomation.RestoreRedaction()MessageBox.Show("Redaction object has been restored")ElseMessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)")End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;//using Leadtools.Help;private void AnnAutomation_RealizeRedaction(AnnAutomation automation){// first add a new redaction object to the automationAnnRedactionObject redaction = new AnnRedactionObject();redaction.Rect = new Rect(100, 100, 100, 100);automation.Container.Children.Add(redaction);// make sure no objects are selected in the automationautomation.SelectNone();// see if we can realize or restore the object (this should show a message informing you that no// objects are currently selected (being edited)RealizeRestoreRedaction(automation);// select (edit) the object we have just addedautomation.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 objectif (automation.CanRealizeRedaction){// realizeautomation.RealizeRedaction();MessageBox.Show("Redaction object has been realized");}else if (automation.CanRestoreRedaction){// restore this objectautomation.RestoreRedaction();MessageBox.Show("Redaction object has been restored");}elseMessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)");}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.Demos'using Leadtools.Help;Private Sub AnnAutomation_RealizeRedaction(ByVal automation As AnnAutomation)' first add a new redaction object to the automationDim redaction As AnnRedactionObject = New AnnRedactionObject()redaction.Rect = New Rect(100, 100, 100, 100)automation.Container.Children.Add(redaction)' make sure no objects are selected in the automationautomation.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 addedautomation.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)End SubPrivate Sub RealizeRestoreRedaction(ByVal automation As AnnAutomation)' first, check if we can realize or restore the objectIf automation.CanRealizeRedaction Then' realizeautomation.RealizeRedaction()MessageBox.Show("Redaction object has been realized")ElseIf automation.CanRestoreRedaction Then' restore this objectautomation.RestoreRedaction()MessageBox.Show("Redaction object has been restored")ElseMessageBox.Show("Cannot realize or restore because no redaction object is currently being edited (selected)")End IfEnd Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
