msContentZoomSnap property

Specifies values for the IHTMLCSSStyleDeclaration2::msContentZoomSnapType and the IHTMLCSSStyleDeclaration2::msContentZoomSnapPoints properties.

This property is read/write.

Internet Explorer 10

 

Syntax

HRESULT put_msContentZoomSnap(
  [in]  DOMString val
);

HRESULT get_msContentZoomSnap(
  [out] DOMString **ptr
);

Property values

Type: DOMString

String format

-ms-content-zoom-snap-type || -ms-content-zoom-snap-points

CSS information

Applies Tonon-replaced block-level elements and non-replaced inline-block elements
Mediainteractive
Inheritedno
Initial Value(see individual properties)

Remarks

This property has no effect on non-zoomable elements. See IHTMLCSSStyleDeclaration2::msContentZooming for details on zoomable elements.

Starting with Windows 8.1, this property is also supported for touchpad interaction.

This property requires Windows 8 or later.

Requirements

IDL

Mshtml.idl

See also

Windows apps using JavaScript Samples: HTML scrolling, panning and zooming sample
msContentZoomFactor
msZoomTo
Internet Explorer Samples: Scrolling, panning, and zooming with touch input
msContentZoomFactor
msZoomTo

 

 

Show: