Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Dispose Method
See Also  Example
Leadtools.Annotations Namespace > AnnObject Class : Dispose Method




Releases the resources used by the AnnObject.

Overload List

OverloadDescription
Dispose() Releases the resources used by the AnnObject.  
Dispose(Boolean) Releases all resources used by this object.  

Example

This example frees all container resources.

Visual BasicCopy Code
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
C#Copy Code
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: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features