Page 1 of 1

how to access to every charter of para?

Posted: Mon Feb 13, 2012 2:26 pm
by black_cat
I want to walk through the paragraph and work directly with charters and their styles.
Also there is a need to change the characters and their styles; delete or add charders.

Posted: Mon Feb 13, 2012 6:55 pm
by Sergey Tkachenko
A TRichView document consists of items numbered from 0 to ItemCount-1.
If GetItemStyle(ItemNo) returns 0 or positive value, this is a text item. You can get its text using GetItemText(ItemNo). This item starts a new paragraph if IsParaStart(ItemNo)=True.
More info: http://www.trichview.com/help/idio_rich ... rview.html

As for changing, it depends on whether you need to make this operation undoable or not.