L_AnnGetText

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnGetText(hObject, pText, puLen)

Gets the text (character string) of the specified annotation object.

Parameters

HANNOBJECT hObject

Handle to the annotation object.

L_TCHAR *pText

Pointer to a character string to be updated with the annotation object's character string.

L_SIZE_T *puLen

Pointer to a variable to updated with the text length.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

To use this function:

Note: The text of the ruler object (which can be retrieved through L_AnnGetText) is the length + unit abbrev. The distance is reset every time the object is changed.

L_AnnGetText can be used to retreive the text from a Rich Text annotation object (ANNOBJECT_RTF). However, no formatting information will be preserved. To retrieve the text with formatting, see L_AnnGetTextRTF.

Required DLLs and Libraries

Platforms

Win32, x64.

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help