Syntax:
INT LlRTFGetTextLength(HLLJOB hJob, HLLRTFOBJ hRTF, INT nFlags);
Task:
Returns the size of the text contained in the object. Necessary to determine the required buffer size for the text.
Parameter:
hJob: List & Label job handle
hRTF: RTF object handle
nFlags: One option from each of the two groups mentioned below must be OR-ed:
|
Value |
Description |
|
Options for the format of the text to be retrieved: | |
|
LL_RTFTEXTMODE_RTF |
RTF-formatted text (incl. RTF control words etc.) |
|
LL_RTFTEXTMODE_PLAIN |
Text in plain text format |
|
Options for the evaluation state: | |
|
LL_RTFTEXTMODE_RAW |
Text in plain format, with unevaluated formulas if applicable |
|
LL_RTFTEXTMODE_EVALUATED |
Text in evaluated format (all formulas replaced by their computed results) |
Return Value:
Length of the buffer (negative in case of an error)
See also:
LlRTFCreateObject, LlRTFGetText