Starts editing the given AnnObject.
public virtual void StartEditing(Leadtools.Windows.Annotations.AnnObject annObject,bool group)
Public Overridable Sub StartEditing( _ByVal annObject As Leadtools.Windows.Annotations.AnnObject, _ByVal group As Boolean _)
public:virtual void StartEditing(Leadtools.Windows.Annotations.AnnObject^ annObject,bool group)
annObject
An existing AnnObject to edit.
This method is called by the AnnAutomation object in design user mode whenever an object is "selected" (by clicking it with the mouse usually). You can manually start the editing process of an object by calling this method.
If you have object(s) that are currently being edited in this AnnAutomation and you want to either create a new group or add an
This example will add a new rectangle object to the active automation of an automation manager. It will then "select" this object and make it ready for editing.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_StartEditing(ByVal manager As AnnAutomationManager)' find the active automationDim automation As AnnAutomation = NothingDim index As Integer = 0Do While index < manager.Automations.Count AndAlso automation Is NothingIf manager.Automations(index).Active Thenautomation = manager.Automations(index)End Ifindex += 1LoopIf Not automation Is Nothing Then' add a new rectangle object to this automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 200, 200)rectObj.Stroke = Colors.BluerectObj.StrokeThickness = 2.0rectObj.Fill = Colors.Yellow' surround the changes to the automation by an undoautomation.BeginUndo()automation.Container.Children.Add(rectObj)' "select" this rectangle and make it ready for editingautomation.StartEditing(rectObj, False)automation.EndUndo()End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_StartEditing(AnnAutomationManager manager){// find the active automationAnnAutomation automation = null;for(int index = 0; index < manager.Automations.Count && automation == null; index++){if(manager.Automations[index].Active)automation = manager.Automations[index];}if(automation != null){// add a new rectangle object to this automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 200, 200);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Yellow;rectObj.StrokeThickness = 2.0;// surround the changes to the automation by an undoautomation.BeginUndo();automation.Container.Children.Add(rectObj);// "select" this rectangle and make it ready for editingautomation.StartEditing(rectObj, false);automation.EndUndo();}}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;private void AnnAutomation_StartEditing(AnnAutomationManager manager){// find the active automationAnnAutomation automation = null;for(int index = 0; index < manager.Automations.Count && automation == null; index++){if(manager.Automations[index].Active)automation = manager.Automations[index];}if(automation != null){// add a new rectangle object to this automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 200, 200);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Yellow;rectObj.StrokeThickness = 2.0;// surround the changes to the automation by an undoautomation.BeginUndo();automation.Container.Children.Add(rectObj);// "select" this rectangle and make it ready for editingautomation.StartEditing(rectObj, false);automation.EndUndo();}}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.DemosPrivate Sub AnnAutomation_StartEditing(ByVal manager As AnnAutomationManager)' find the active automationDim automation As AnnAutomation = NothingDim index As Integer = 0Do While index < manager.Automations.Count AndAlso automation Is NothingIf manager.Automations(index).Active Thenautomation = manager.Automations(index)End Ifindex += 1LoopIf Not automation Is Nothing Then' add a new rectangle object to this automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 200, 200)rectObj.Stroke = Colors.BluerectObj.Fill = Colors.YellowrectObj.StrokeThickness = 2.0' surround the changes to the automation by an undoautomation.BeginUndo()automation.Container.Children.Add(rectObj)' "select" this rectangle and make it ready for editingautomation.StartEditing(rectObj, False)automation.EndUndo()End IfEnd Sub
|
Products |
Support |
Feedback: StartEditing 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.