Realizes all the AnnRedactionObject objects in this AnnAutomation.
public virtual void RealizeAllRedactions()
Public Overridable Sub RealizeAllRedactions()
public:
virtual void RealizeAllRedactions();
Use the CanRealizeAllRedactions property to determine whether you can currently call this method.
This method will call the AnnRedactionObject.Realize method for all AnnRedactionObject objects that have the AnnRedactionObject.IsRealized value set to false.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnAutomation_RealizeAllRedactions(ByVal automation As AnnAutomation)
' remove all objects from this automation
automation.SelectAll()
automation.Delete()
' see if we can realize or restore all the redaction objects
'(this should show a message informing you there are no redaction objects in this automation)
RealizeRestoreAllRedactions(automation)
' first add a couple of new redaction object to the automation
Dim redaction As AnnRedactionObject = New AnnRedactionObject()
redaction.Rect = New Rect(100, 100, 100, 100)
automation.Container.Children.Add(redaction)
redaction = New AnnRedactionObject()
redaction.Rect = New Rect(300, 300, 100, 100)
automation.Container.Children.Add(redaction)
' see if we can realize/restore the objects (should realize the redactions)
RealizeRestoreAllRedactions(automation)
' see if we can realize/restore the objects (should restore the redactions)
RealizeRestoreAllRedactions(automation)
End Sub
Private Sub RealizeRestoreAllRedactions(ByVal automation As AnnAutomation)
If automation.CanRealizeAllRedactions Then
' realize
automation.RealizeAllRedactions()
MessageBox.Show("Redaction objects have been realized")
ElseIf automation.CanRestoreAllRedactions Then
' restore
automation.RestoreAllRedactions()
MessageBox.Show("Redaction objects have been restored")
Else
MessageBox.Show("Cannot realize or restore because no redaction object is currently in this automation")
End If
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnAutomation_RealizeAllRedactions(AnnAutomation automation)
{
// remove all objects from this automation
automation.SelectAll();
automation.Delete();
// see if we can realize or restore all the redaction objects (this should show a message informing you there are
// no redaction objects in this automation)
RealizeRestoreAllRedactions(automation);
// first add a couple of new redaction object to the automation
AnnRedactionObject redaction = new AnnRedactionObject();
redaction.Rect = new Rect(100, 100, 100, 100);
automation.Container.Children.Add(redaction);
redaction = new AnnRedactionObject();
redaction.Rect = new Rect(300, 300, 100, 100);
automation.Container.Children.Add(redaction);
// see if we can realize/restore the objects (should realize the redactions)
RealizeRestoreAllRedactions(automation);
// see if we can realize/restore the objects (should restore the redactions)
RealizeRestoreAllRedactions(automation);
}
private void RealizeRestoreAllRedactions(AnnAutomation automation)
{
if(automation.CanRealizeAllRedactions)
{
// realize
automation.RealizeAllRedactions();
MessageBox.Show("Redaction objects have been realized");
}
else if(automation.CanRestoreAllRedactions)
{
// restore
automation.RestoreAllRedactions();
MessageBox.Show("Redaction objects have been restored");
}
else
MessageBox.Show("Cannot realize or restore because no redaction object is currently in this automation");
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
using Leadtools.Silverlight.Demos;
private void AnnAutomation_RealizeAllRedactions(AnnAutomation automation)
{
// remove all objects from this automation
automation.SelectAll();
automation.Delete();
// see if we can realize or restore all the redaction objects (this should show a message informing you there are
// no redaction objects in this automation)
RealizeRestoreAllRedactions(automation);
// first add a couple of new redaction object to the automation
AnnRedactionObject redaction = new AnnRedactionObject();
redaction.Rect = new Rect(100, 100, 100, 100);
automation.Container.Children.Add(redaction);
redaction = new AnnRedactionObject();
redaction.Rect = new Rect(300, 300, 100, 100);
automation.Container.Children.Add(redaction);
// see if we can realize/restore the objects (should realize the redactions)
RealizeRestoreAllRedactions(automation);
// see if we can realize/restore the objects (should restore the redactions)
RealizeRestoreAllRedactions(automation);
}
private void RealizeRestoreAllRedactions(AnnAutomation automation)
{
if(automation.CanRealizeAllRedactions)
{
// realize
automation.RealizeAllRedactions();
MessageBox.Show("Redaction objects have been realized");
}
else if(automation.CanRestoreAllRedactions)
{
// restore
automation.RestoreAllRedactions();
MessageBox.Show("Redaction objects have been restored");
}
else
MessageBox.Show("Cannot realize or restore because no redaction object is currently in this automation");
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Imports Leadtools.Silverlight.Demos
Private Sub AnnAutomation_RealizeAllRedactions(ByVal automation As AnnAutomation)
' remove all objects from this automation
automation.SelectAll()
automation.Delete()
' see if we can realize or restore all the redaction objects (this should show a message informing you
' there are no redaction objects in this automation)
RealizeRestoreAllRedactions(automation)
' first add a couple of new redaction object to the automation
Dim redaction As AnnRedactionObject = New AnnRedactionObject()
redaction.Rect = New Rect(100, 100, 100, 100)
automation.Container.Children.Add(redaction)
redaction = New AnnRedactionObject()
redaction.Rect = New Rect(300, 300, 100, 100)
automation.Container.Children.Add(redaction)
' see if we can realize/restore the objects (should realize the redactions)
RealizeRestoreAllRedactions(automation)
' see if we can realize/restore the objects (should restore the redactions)
RealizeRestoreAllRedactions(automation)
End Sub
Private Sub RealizeRestoreAllRedactions(ByVal automation As AnnAutomation)
If automation.CanRealizeAllRedactions Then
' realize
automation.RealizeAllRedactions()
MessageBox.Show("Redaction objects have been realized")
Else If automation.CanRestoreAllRedactions Then
' restore
automation.RestoreAllRedactions()
MessageBox.Show("Redaction objects have been restored")
Else
MessageBox.Show("Cannot realize or restore because no redaction object is currently in this automation")
End If
End Sub
Products |
Support |
Feedback: RealizeAllRedactions Method - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.