IDirectManipulationViewport::ZoomToRect method

Moves the viewport to a specific area of the primary content and specifies whether to animate the transition.

Syntax


HRESULT ZoomToRect(
  [in]  const FLOAT left,
  [in]  const FLOAT top,
  [in]  const FLOAT right,
  [in]  const FLOAT bottom,
  [in]  BOOL animate
);

Parameters

left [in]

The leftmost coordinate of the rectangle in the primary content coordinate space.

top [in]

The topmost coordinate of the rectangle in the primary content coordinate space.

right [in]

The rightmost coordinate of the rectangle in the primary content coordinate space.

bottom [in]

The bottommost coordinate of the rectangle in the primary content coordinate space.

animate [in]

Specifies whether to animate the zoom behavior.

Return value

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

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_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

IDirectManipulationViewport

 

 

Community Additions

ADD
Show:
© 2014 Microsoft