Accusoft.ImagXpressSdk Namespace > ImageXView Class : ZoomToFit Method |
'Declaration Public Sub ZoomToFit( _ ByVal zoomToFitType As ZoomToFitType _ )
'Usage Dim instance As ImageXView Dim zoomToFitType As ZoomToFitType instance.ZoomToFit(zoomToFitType)
public void ZoomToFit( ZoomToFitType zoomToFitType )
public: void ZoomToFit( ZoomToFitType zoomToFitType )
public: void ZoomToFit( ZoomToFitType zoomToFitType )
This is a one time zoom unlike some of the AutoResize property settings which will repeatedly set the ZoomFactor. In fact, the AutoResize property has precedence over the ZoomToFit method and not the other way around. Calling the ZoomToFit method with ZoomToFitType.FitHeight when the AutoResize property is set to AutoResizeType.FitWidth will do absolutely nothing. Therefore it is best to use this method when the AutoResize property is set to AutoResizeType.CropImage or AutoResizeType.CropImageToControl.