IDirectManipulationPrimaryContent::SetZoomBoundaries method

Specifies the minimum and maximum boundaries for zoom.

Syntax


HRESULT SetZoomBoundaries(
  [in]  float zoomMinimum,
  [in]  float zoomMaximum
);

Parameters

zoomMinimum [in]

The minimum zoom level allowed. Must be greater than or equal to 0.1f, which corresponds to 100% zoom.

zoomMaximum [in]

The maximum zoom allowed. Must be greater than zoomMinimum and less than FLT_MAX.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the content is outside the new boundaries, and the viewport is ENABLED or READY, then the content is reset to be within the new boundaries. If inertia configuration is enabled, the reset operation uses an inertia animation.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationPrimaryContent is defined as C12851E4-1698-4625-B9B1-7CA3EC18630B

See also

IDirectManipulationPrimaryContent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.