#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnDeleteTextTokenTable(hAutomation, cToken)
Call this function to delete a text token from the annotation text token table.
Handle of the automation object.
Character representing the token to delete from the text token table. For example, to delete token "#c" from the text token table, pass c for cToken.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Call this function to delete the token #<cToken> from the text token table.
This function returns SUCCESS if cToken
is successfully deleted, or if cToken was not already in the text token table. This function is used with the text annotation objects that support tokens, namely the following:
Required DLLs and Libraries
Win32, x64.
The predefined Text Token Table has 'Y' defined to be the four digit year. This example deletes the 'Y' token from the token table.
L_INT AnnDeleteTextTokenTableExample(HANNOBJECT hAutomation)
{
L_INT nRet;
ANNTEXTTOKEN TextToken;
TextToken.uStructSize = sizeof(ANNTEXTTOKEN);
TextToken.cToken = 'Y';
TextToken.pszDesc = TEXT("Two Digit Month");
TextToken.pszTokenString = NULL;
TextToken.nTokenType = ANNTOKEN_DATE_MM;
nRet = L_AnnInsertTextTokenTable(hAutomation, &TextToken);
if(nRet != SUCCESS)
return nRet;
nRet = L_AnnDeleteTextTokenTable(hAutomation, 'Y');
if(nRet != SUCCESS)
return nRet;
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