Processes each text token in the annotation text token table from the LAnnAutomation::EnumerateTextTokenTable function. This function is called zero or more times as a result of a call to LAnnAutomation::EnumerateTextTokenTable.
#include "ltwrappr.h"
virtual L_INT LAnnAutomation::EnumTextTokenTableCallBack(nTextTokenCount, nIndex, pTextToken)
Total number of tokens in the text token table.
Index of the particular token. The index is zero-based.
A pointer to an ANNTEXTTOKENstructure that defines the text token. For more information, see the documentation for the ANNTEXTTOKEN structure.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The LAnnAutomation::EnumerateTextTokenTable function calls the LAnnAutomation::EnumTextTokenTableCallBack function for each token in the annotation text token table. For example, suppose there are four entries in the text token table. A call to LAnnAutomation::EnumerateTextTokenTable() will call your overridden call back LAnnAutomation::EnumTextTokenTableCallBack function four timesonce for each token. For each of the four calls, nTextTokenCount will be 4. Since nIndex is zero-based, nIndex will be 0 in the first call to your callback function, and 3 in the last call to your callback function.
To enable this call back function you must call LBase::EnableCallBack before calling LAnnAutomation::EnumerateTextTokenTable function.
Win32, x64.
For an example, refer to LAnnAutomation::EnumerateTextTokenTable.
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