UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:directmanipulation.IDirectManipulationPrimaryContent.SetSnapPoints |
IDirectManipulationPrimaryContent::SetSnapPoints (directmanipulation.h) |
Specifies the snap points for the inertia rest position. |
|
directmanipulation\idirectmanipulationprimarycontent_setsnappoints.htm |
directmanipulation |
3257952d-903b-455c-9422-9739411a5924 |
12/05/2018 |
IDirectManipulationPrimaryContent interface [Direct Manipulation],SetSnapPoints method, IDirectManipulationPrimaryContent.SetSnapPoints, IDirectManipulationPrimaryContent::SetSnapPoints, SetSnapPoints, SetSnapPoints method [Direct Manipulation], SetSnapPoints method [Direct Manipulation],IDirectManipulationPrimaryContent interface, directmanipulation.idirectmanipulationprimarycontent_setsnappoints, directmanipulation/IDirectManipulationPrimaryContent::SetSnapPoints |
directmanipulation.h |
Windows |
Windows 8 [desktop apps only] |
Windows Server 2012 [desktop apps only] |
DirectManipulation.idl |
Windows |
19H1 |
|
|
|
|
|
|
Specifies the snap points for the inertia rest position.
One or more of the DIRECTMANIPULATION_MOTION_TYPES enumeration values. Only DIRECTMANIPULATION_MOTION_TRANSLATE_X, DIRECTMANIPULATION_MOTION_TRANSLATE_Y, or DIRECTMANIPULATION_MOTION_ZOOM are allowed.
An array of snap points within the boundaries of the content to snap to. Should be specified in increasing order relative to the origin set in SetSnapCoordinate.
The size of the array of snap points. Should be greater than 0.
If the method succeeds, it returns S_OK. If there is no change in the snap points, this method can return S_FALSE. Otherwise, it returns an HRESULT error code. If invalid snap points are specified, existing snap points might be affected.
If snap points are invalid (for example, outside of the content boundaries), they are ignored and the content is always within the content boundaries.