IDirectManipulationContentBehavior::SetSnapInterval method

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps only

Sets the snap interval for the manipulation value for inertia.

Syntax

HRESULT SetSnapInterval(
  [in]  DIRECTMANIPULATION_MOTION_TYPES motion,
  [in]  float interval,
  [in]  float offset,
  [in]  BOOL isFromMinimum
);

Parameters

  • motion [in]
    The motion type on which to set the interval.

  • interval [in]
    The interval to snap to.

  • offset [in]
    The offset from the content size where the interval starts.

  • isFromMinimum [in]
    Determines if the offset property is from the minimum or maximum content size.

Return value

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

Remarks

The units device pixel units. If snap points have been defined the results from setting the snap point interval is ignored.

Examples

The following example shows the syntax for this method.

HRESULT hr = pContent->SetSnapInterval(DIRECTMANIPULATION_MOTION_TRANSLATEX,
    45.0f, 0.0f, true);

Requirements

Minimum supported client

Windows Developer Preview

Minimum supported server

Windows Server Developer Preview

IDL

DirectManipulation.idl

See also

IDirectManipulationContentBehavior

 

 

Build date: 12/12/2011