←Select platform

ZoomToRect Method (ImageViewer)

Summary

Zooms the view to the specified rectangle.

Syntax

C#
VB
C++
public virtual void ZoomToRect( 
   LeadRectD rect 
) 
Public Overridable Sub ZoomToRect( 
   ByVal rect As LeadRectD 
) 
public:  
   virtual void ZoomToRect( 
      LeadRectD^ rect 
   ) 

Parameters

rect

The rectangle in control coordinates.

Remarks

The control will use Zoom and change ScrollOffset (and optionally, the scrollbars) according to the value passed. Therefore, this method will follow the same rules governing the minimum and maximum values of ScrollOffset.

ImageViewerZoomToInteractiveMode uses this method to perform its action.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize