Leadtools.Annotations Namespace : AnnGroupObject Class |
[SerializableAttribute()] public class AnnGroupObject : AnnObject, IAnnProtractorObject, IAnnRulerObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Declaration <SerializableAttribute()> Public Class AnnGroupObject Inherits AnnObject Implements IAnnProtractorObject, IAnnRulerObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Usage Dim instance As AnnGroupObject
public sealed class AnnGroupObject : IAnnProtractorObject, IAnnRulerObject, IAnnTextObject, System.ICloneable, IClosable //In WinRT the IDisposable interface is replaced by IClosable, ~Remove~
function Leadtools.Annotations.AnnGroupObject()
[SerializableAttribute()] public ref class AnnGroupObject : public AnnObject, IAnnProtractorObject, IAnnRulerObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
For more information about grouping and ungrouping, refer to Grouping and Ungrouping Annotation Objects.
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); }
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