IDirectManipulationViewport::ZoomToRect method (directmanipulation.h)
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
[in] left
The leftmost coordinate of the rectangle in the primary content coordinate space.
[in] top
The topmost coordinate of the rectangle in the primary content coordinate space.
[in] right
The rightmost coordinate of the rectangle in the primary content coordinate space.
[in] bottom
The bottommost coordinate of the rectangle in the primary content coordinate space.
[in] animate
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |