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

Dispose() Method

Example 





Releases the resources used by the AnnObject.
Syntax
public void Dispose()
'Declaration
 
Public Overloads Sub Dispose() 
'Usage
 
Dim instance As AnnObject
 
instance.Dispose()
public void Dispose()
 function Leadtools.Annotations.AnnObject.Dispose()()
public:
void Dispose(); 
Example
 
Public Sub AnnObject_Dispose(ByVal container As AnnContainer)
   Do While container.Objects.Count > 0
      Dim obj As AnnObject = container.Objects(0)
      container.Objects.RemoveAt(0)
      obj.Dispose()
   Loop
End Sub
public void AnnObject_Dispose(AnnContainer container)
{
   while(container.Objects.Count > 0)
   {
      AnnObject obj = container.Objects[0];
      container.Objects.RemoveAt(0);
      obj.Dispose();
   }
}
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

AnnObject Class
AnnObject Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

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