Table of Contents

Class MediaQueryListEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The MediaQueryListEvent object stores information on the changes that have happened to a MediaQueryList object — instances are available as the event object on a function referenced by a MediaQueryList.Change event.

[Value("MediaQueryListEvent")]
public class MediaQueryListEvent : Event
Inheritance
MediaQueryListEvent
Inherited Members

Remarks

Constructors

MediaQueryListEvent()

public MediaQueryListEvent()

MediaQueryListEvent(string, MediaQueryListEventInit)

The MediaQueryListEvent() constructor creates a new MediaQueryListEvent object.

public MediaQueryListEvent(string type, MediaQueryListEventInit eventInitDict = null)

Parameters

type string
eventInitDict MediaQueryListEventInit

Remarks

Properties

Matches

The matches read-only property of the
MediaQueryListEvent interface is a boolean value that is
true if the Document currently matches the media query list,
or false if not.

[Value("matches")]
public bool Matches { get; }

Property Value

bool

A boolean value; returns true if the Document
currently matches the media query list, false if not.

Remarks

Media

The media read-only property of the
MediaQueryListEvent interface is a string representing
a serialized media query.

[Value("media")]
public string Media { get; }

Property Value

string

A string representing a serialized media query.

Remarks