Share via


pointerEvents property

Sets or retrieves a value that specifies under what circumstances a given graphics element can be the target element for a pointer event in Scalable Vector Graphics (SVG). Starting with Internet Explorer 11, this property also has basic support for HTML elements (see "Remarks" section).

 

Syntax

HRESULT value = object.put_pointerEvents( v);HRESULT value = object.get_pointerEvents(* p);

Property values

Type: BSTR

One of the values in the Property Values section.

String format

visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | none | inherit | initial

CSS information

Applies To graphics elements, all HTML elements (with limited support, see Remarks)
Media visual
Inherited true
Initial Value visiblePainted

Standards information

Remarks

Starting with IE11, IHTMLCSSStyleDeclaration::pointerEvents is also supported as a CSS property on HTML elements, with the following effect:

Value Description

none

The element does not fire pointer input events (it is not hit-testable).

Any other valid pointer-events value

The element fires pointer input events.

 

The IHTMLCSSStyleDeclaration::pointerEvents property affects the circumstances under which the following are processed:

  • User interface events, such as mouse clicks
  • Dynamic pseudo-classes (that is, :hover, :active, and :focus)
  • Hyperlinks (that is, the a element)

As of Internet Explorer for Windows Phone 8.1 Update, Internet Explorer for Windows Phone supports initial as a value for this property.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll