←Select platform

CenterAtPoint Method

Summary

Centers the image display at the specified point.

Syntax

C#
VB
Java
Objective-C
WinRT C#
public virtual void CenterAtPoint(  
   Point point 
) 
Public Overridable Sub CenterAtPoint( _ 
   ByVal point As Point _ 
)  
public virtual void CenterAtPoint(  
   Point point 
) 
- (void)centerAtPoint:(CGPoint)point 
public void centerAtPoint(PointF point) 
 function Leadtools.Controls.ImageViewer.CenterAtPoint(  
   point  
) 

Parameters

point
The point at which to center the image display, in control coordinates.

Remarks

The control will 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.

ImageViewerCenterAtInteractiveMode uses this method to perform its operation.

Requirements

Target Platforms

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)