ChartDirector 7.1 (C++ Edition)

ViewPortManager.setZoomInWidthLimit


Usage

void setZoomInWidthLimit(double width);

Description

Sets the viewport width at maximum zoom in.

In many applications, it is desirable to set a maximum zoom in level, instead of allowing the user to zoom in indefinitely.

This method determines the minimum allowed viewport width. It should be between 0 and 1. The default is 0.01, which means a maximum zoom in of 100x (the viewport see only 1% of the underlying surface).

Arguments

ArgumentDefaultDescription
width(Mandatory)The minimum allowed viewport width.

Return Value

None