Gets the current AnnObject being edited.
public Leadtools.Windows.Annotations.AnnObject CurrentEditObject {get;}
Public ReadOnly Property CurrentEditObject As Leadtools.Windows.Annotations.AnnObject
public:
property Leadtools.Windows.Annotations.AnnObject^ CurrentEditObject {
Leadtools.Windows.Annotations.AnnObject^ get();
}
The current AnnObject being edited; null (Nothing in VB) if no objects are currently being edited.
The current object being edited is the AnnObject currently "selected" where its AnnEditDesigner is currently active.
This is the object that will be processed when calling any of the object processing methods of this AnnAutomation. For example, calling Copy will copy the CurrentEditObject into the clipboard.
You can change the CurrentEditObject by calling StartEditing.
This example changes the stroke of the object that is currently being edited to a Red pen that has a width of 2 pixels.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnAutomation_ChangeStrokeToBlue(ByVal automation As AnnAutomation)
' check if an object is currently "selected"
If Not automation.CurrentEditObject Is Nothing Then
' check if this object supports a pen
If automation.CurrentEditObject.SupportsStroke Then
' change its pen
automation.BeginUndo()
automation.CurrentEditObject.Stroke = Colors.Blue
automation.CurrentEditObject.StrokeThickness = 2.0
automation.EndUndo()
End If
End If
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnAutomation_ChangeStrokeToBlue(AnnAutomation automation)
{
// check if an object is currently "selected"
if(automation.CurrentEditObject != null)
{
// check if this object supports a pen
if(automation.CurrentEditObject.SupportsStroke)
{
// change its pen
automation.BeginUndo();
automation.CurrentEditObject.Stroke = Colors.Blue;
automation.CurrentEditObject.StrokeThickness = 2.0;
automation.EndUndo();
}
}
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
using Leadtools.Silverlight.Demos;
private void AnnAutomation_ChangeStrokeToBlue(AnnAutomation automation)
{
// check if an object is currently "selected"
if(automation.CurrentEditObject != null)
{
// check if this object supports a pen
if(automation.CurrentEditObject.SupportsStroke)
{
// change its pen
automation.BeginUndo();
automation.CurrentEditObject.Stroke = Colors.Blue;
automation.CurrentEditObject.StrokeThickness = 2.0;
automation.EndUndo();
}
}
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Imports Leadtools.Silverlight.Demos
Private Sub AnnAutomation_ChangeStrokeToBlue(ByVal automation As AnnAutomation)
' check if an object is currently "selected"
If Not automation.CurrentEditObject Is Nothing Then
' check if this object supports a pen
If automation.CurrentEditObject.SupportsStroke Then
' change its pen
automation.BeginUndo()
automation.CurrentEditObject.Stroke = Colors.Blue
automation.CurrentEditObject.StrokeThickness = 2.0
automation.EndUndo()
End If
End If
End Sub
Products |
Support |
Feedback: CurrentEditObject Property - 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.