ImageEn, unit iemview

TImageEnMView.CenterSelected

TImageEnMView.CenterSelected

Declaration

procedure CenterSelected();

Description

Scrolls the view (by calling SetViewXY) to display the currently selected image at a central position in the view.

Note:
This method uses SelectedImage to determine the selection, whereas CenterFrame uses VisibleFrame.
To show a specific thumbnail, use DisplayImageAt

Example

ImageEnMView1.SelectedImage := 10;
ImageEnMView1.CenterSelected();

See Also

SetViewXY
CenterFrame
DisplayImageAt