Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LAnnotation::GetTag

Show in webframe

#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

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Annotation Functions: Object Properties

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.