Page 1 of 1
Get Table and Cell from GetCurrentPictureInfo
Posted: Wed Oct 15, 2008 6:10 am
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
Posted: Wed Oct 15, 2008 6:25 am
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).
Posted: Wed Oct 15, 2008 11:52 am
by Andy
Thanks you Sergey, it works fine !
Andy