Get Table and Cell from GetCurrentPictureInfo

General TRichView support forum. Please post your questions here
Post Reply
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

Get Table and Cell from GetCurrentPictureInfo

Post by Andy »

How can I get Information after "RichViewEditGetCurrentPictureInfo"

- is a Table as container
- if yes , how can I get the cell-object


Thanks for any help

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

Post by Sergey Tkachenko »

If the current picture is in a cell, this cell is being edited.
In this case, RichViewEdit1.TopLevelEditor<>RichViewEdit1, i.e. RichViewEdit1.TopLevelEditor is a cell inplace editor.

In this case, the cell is returned by
RichViewEdit1.TopLevelEditor.RVData.GetSourceRVData
(an object of TRVTableCellData class is returned).
(in case when cell is not being edited, RichViewEdit1.TopLevelEditor.RVData.GetSourceRVData returns RichViewEdit1.RVData).
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

Post by Andy »

Thanks you Sergey, it works fine !

Andy
Post Reply