trichview.support
Re: Getting the text of an item using TCustomRVItemInfo |
Author |
Message |
Martin Holmes |
Posted: 07/05/2004 15:39:41 Sergey Tkachenko wrote: > You cannot get text if you have a pointer to item. > Actually, items are stored in TStringList. Text is Items[i], item is > Items.Objects[i]. Perhaps I could access your lists instead of my own, then? If I iterate through your items list, I can presumably check the style of the item using Items.Objects[i], and get/set the text using Items[i]. But I'm using Unicode, and I'm also allowing embedded tables; my original reason for building my own list was to get a linear list of all items in the document, including embedded tables. There has to be a way to do this... Cheers, Martin > (note: it can be changed in future) > Item does not have a reference to text and to stringlist itself. > > >>So is there any way I can get at the text if I have a pointer to the >>item? Does the item have any properties I could use to get at its text? >> >>Cheers, >>Martin >> >>Sergey Tkachenko wrote: >> >>>Item does not store its text (may be this will be changed in future). >>>Text is stored separately. >>> >>> >>> >>> >>>>Hi there, >>>> >>>>I've written functions which create for me a list of all the items in a >>>>document in TRichViewEdit (including embedded tables) in sequence, so I >>>>can iterate through them in order. I'm accessing the resulting items >>>>like this: >>> >>> >>> > > |
Powered by ABC Amber Outlook Express Converter