Replace item in RVData

General TRichView support forum. Please post your questions here
Post Reply
charles.lambert
Posts: 26
Joined: Mon Jul 05, 2010 7:44 pm

Replace item in RVData

Post by charles.lambert »

Hi,

I'd like to know how I could replace an item in RichViewEdit1.RVData.

For example, one of the item is a TRVGraphicItemInfo and I want to replace this image.

Regards,

- Charles
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

To change an image, it's not necessary to replace its item.
Use RVData.GetPictureInfo to get the main item properties, then RVData.SetPictureInfo with all parameters returned by GetPictureInfo, but with a new image.
charles.lambert
Posts: 26
Joined: Mon Jul 05, 2010 7:44 pm

Post by charles.lambert »

Allright, thanks
Post Reply