This class provides support for creating and managing annotation group objects.
[SerializableAttribute()]public class AnnGroupObject : Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
<SerializableAttribute()>Public Class AnnGroupObjectInherits Leadtools.Annotations.AnnObjectImplements Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
[SerializableAttribute()]public ref class AnnGroupObject : public Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The annotation group object contains a collection of annotation objects from any class that is derived from theAnnObject class. This collection of objects can be treated as one while they are in a group. An annotation object can be in either a container or a group but not both at the same time. For more information about grouping and ungrouping, refer to Grouping and Ungrouping Annotation Objects (Deprecated).
This example moves all the objects from a container into a new group object.
using Leadtools;using Leadtools.Annotations;using Leadtools.Codecs;using Leadtools.WinForms;private void AnnGroupObject_AnnGroupObject(AnnContainer container){AnnGroupObject group = new AnnGroupObject();// move the objects to the groupwhile (container.Objects.Count > 0){AnnObject obj = container.Objects[0];container.Objects.RemoveAt(0);group.Objects.Add(obj);}// add the group to the containercontainer.Objects.Add(group);}
Imports LeadtoolsImports Leadtools.AnnotationsImports Leadtools.CodecsImports Leadtools.WinFormsPrivate Sub AnnGroupObject_AnnGroupObject(ByVal container As AnnContainer)Dim group As AnnGroupObject = New AnnGroupObject()' move the objects to the groupDo While container.Objects.Count > 0Dim obj As AnnObject = container.Objects(0)container.Objects.RemoveAt(0)group.Objects.Add(obj)Loop' add the group to the containercontainer.Objects.Add(group)End Sub
|
Products |
Support |
Feedback: AnnGroupObject Class - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|

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.