Gets the tag of the annotation object.
#include "ltwrappr.h"
virtual L_UINT32 LAnnotation::GetTag()
The object's tag.
You can use this tag to uniquely identify objects when they are saved in a file.
Win32, x64.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document