←Select platform

Dispose() Method

Summary

Releases the resources used by the AnnObject.

Syntax

C#
VB
C++
public void Dispose() 
  
Public Overloads Sub Dispose()  
public: 
void Dispose();  

Example

This example frees all container resources.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
using Leadtools.Drawing; 
 
public void AnnObject_Dispose(AnnContainer container) 
{ 
   while (container.Objects.Count > 0) 
   { 
      AnnObject obj = container.Objects[0]; 
      container.Objects.RemoveAt(0); 
      obj.Dispose(); 
   } 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
Imports Leadtools.Drawing 
 
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 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly