TCustomRichView.GetSelectedImage

<< Click to display table of contents >>

TCustomRichView.GetSelectedImage

Returns the selected image

function GetSelectedImage: TRVGraphic;

This method returns image, if the selection consist only of one image. If there is nothing selected, or not only image is selected, this method returns nil.

The method returns image owned by TRichView, not a copy of it. So do not destroy this image.

 

This method must be called only when the document is formatted.

 

See also:

Working with selection.