trichview.com

trichview.support




Re: Cell text with unicode characters


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/10/2003 21:32:47


You can use Cell.GetRVData.GetItemTextW(i) (i from 0 to

Cell.GetRVData.ItemCount-1, if Cell.GetRVData.GetItemStyle(i)>=0).

GetItemTextW returns unicode text for any item - it may be of Unicode or

Ansi encoding.

Using this method, you do not need to distinguish Unicode/Ansi yourself, but

you can always do it, checking

RVStyle.TextStyles[Cell.GetRVData.GetItemStyle(i)].Unicode

(where RVStyle is a TRVStyle component linked to this RichView)


Checking if the item creates a new paragraph: Cell.GetRVData.IsParaStart(i).

There is also IsFromNewLine method, returning true either if the item starts

paragraph or if if it starts a new line inside paragraph (created with

Shift+Enter)



> Hello,

>

> how can i get the whole text of a cell (text contains unicode characters)

> and all "CRLFs" (line breaks) in that cell?

> cell.Items.text retrieve text without unicode-characters.

> When i iterate over cell.items, i get the correct text but i have the

> problem that i can't distinguish between items with unicode-characters and

> line breaks.

> (In other words: how can i check if an item creates a new paragraph?)

> thank you,

>

> Michael

>

>





Powered by ABC Amber Outlook Express Converter