Skip to main content
Known Participant
October 6, 2008
Question

FDK 7.2 : Props of each Char of an object

  • October 6, 2008
  • 4 replies
  • 509 views
Hi,

I need to obtain Props of each character of a text inside an object.

I can get the ID of the object.

But I can't find a way :
1)to get his text
2)to get (loop) each character of his text in order to get his Props.

I have tried TextRange, TextItem ... but it seems that i am not using them well.

I want to use : F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *textLocp);

Some ideas?

Thanks,
Alexandre
This topic has been closed for replies.

4 replies

Legend
December 23, 2008
shooter,

I might recommend starting with the FDK Developer's Guide. It has lots of good information about text management with the FDK. It would be a bit much to try to coach you through it here. Besides, there are a number of approaches, depending on your intended goal.

Russ
Participant
December 22, 2008
hi ! i'm new to FDK. what i need is to find the end od the document and to add there the empty paragrah. Wich functions i ought to use?
Legend
October 10, 2008
Alexandre,

The difference is because the format properties are only absolute at a single location, so you couldn't reliably retrieve them for a range. However, it is likely that you would want to set them over a range, hence the ability to set them that way.

Russ
_alma_Author
Known Participant
October 10, 2008
Hi,

1)
I have found a way to do this thanks to :
*F_ElementRangeT
*method F_ApiElementLocToTextLoc(...) = ElementRangeT to TextRangeT

and after I get props char per char of the text.

2)About :

*F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *tLocp);

*VoidT F_ApiSetTextProps(F_ObjHandleT docId,F_TextRangeT *ttRgep,
F_PropValsT *setVal);

I have one remark : For F_ApiGetTextProps, we need to use F_TextLocT and for F_ApiSetTextProps we need to use TextRangeT which is 2 F_TextLocT in a structure.

This is the first time that i see in a language that the type of param of a set method is different than the param of a get method.

Thanks,
Alexandre