LAnnotation::GetTag

#include "ltwrappr.h"

virtual L_UINT32 LAnnotation::GetTag()

Gets the tag of the annotation object.

Returns

The object's tag.

Comments

You can use this tag to uniquely identify objects when they are saved in a file.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT LAnnotation_GetTagExample(LAnnotation& LeadAnn)  
{ 
   L_INT nRet; 
   L_UINT32 ulTag ; 
   L_UINT uAnnType ; 
 
   ulTag = LeadAnn.GetTag() ; 
   if (ulTag == 3) 
      MessageBox (NULL, TEXT("This is what we do for No. 3"), TEXT("Notice"), MB_OK); 
   else 
   { 
      if (LeadAnn.IsSelected() == FALSE) 
      { 
         nRet = LeadAnn.SetSelected(TRUE,ANNFLAG_RECURSE) ;         
         if(nRet != SUCCESS) 
            return nRet; 
         nRet = LeadAnn.SetTag( 3, ANNFLAG_SELECTED); 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
 
   } 
 
   uAnnType = LeadAnn.GetType() ; 
   if (uAnnType == ANNOBJECT_ELLIPSE) 
      MessageBox(NULL, TEXT("Annotation has an ellipse object ..."), TEXT("Notice"),MB_OK) ; 
 
   return SUCCESS; 
} 
Help Version 20.0.2020.4.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help