Remarks:
The ToFitSelection method changes the active view to fit a selection of objects in the current document into the application window. This method adjusts the zoom level of the page so that the entire current selection of objects fills the current view in the application window. ToFitSelection method is equivalent to the Shift+F2 command in CorelDRAW.