Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMText::explodeFragments Method
Syntax
C++
void explodeFragments(OdDbMTextEnum fragmentFn, void * params, OdGiWorldDraw * ctxt = 0) const;

Explodes this MText entity into a sequence of simple text fragments, passing each fragment to the specified function 

 

Parameters
Description
fragmentFn
[in] Function pointer to the fragment elaboration callback function.
params
[in] Void pointer to the fragmentFn callback function's second argument.
ctxt
[in] Drawing context.

The prototype of the fragment elaboration is as follows: 

int (*OdDbMtextEnum)(OdDbMTextFragment *fragment, void *param) 

If ctxt is null, the current OdGiWorldDraw object will be used. 

The elaboration function should return 1 to continue, or 0 to terminate the explosion. 

Each new line in this MText entity, and each change of text attributes, will start a new fragment.

Copyright © 2002-2022. Open Design Alliance All rights reserved.