how to access to every charter of para?

General TRichView support forum. Please post your questions here
Post Reply
black_cat
Posts: 3
Joined: Tue Feb 07, 2012 11:39 am

how to access to every charter of para?

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply