LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

AnnGroupObject Class

Example 





Members 
This class provides support for creating and managing annotation group objects.
Object Model
AnnGroupObject ClassAnnLength StructureAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnLength StructureAnnFont ClassAnnPen ClassAnnPen ClassAnnLength StructureAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnLength StructureAnnUnitConverter Class
Syntax
Remarks
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.

Example
 
Private Sub AnnGroupObject_AnnGroupObject(ByVal container As AnnContainer)
   Dim group As AnnGroupObject = New AnnGroupObject()
   ' move the objects to the group
   Do While container.Objects.Count > 0
      Dim obj As AnnObject = container.Objects(0)
      container.Objects.RemoveAt(0)
      group.Objects.Add(obj)
   Loop

   ' add the group to the container
   container.Objects.Add(group)
End Sub
private void AnnGroupObject_AnnGroupObject(AnnContainer container)
{
   AnnGroupObject group = new AnnGroupObject();
   // move the objects to the group
   while(container.Objects.Count > 0)
   {
      AnnObject obj = container.Objects[0];
      container.Objects.RemoveAt(0);
      group.Objects.Add(obj);
   }

   // add the group to the container
   container.Objects.Add(group);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnGroupObject Members
Leadtools.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.