MediaQueryListEvent Class
The event fired when the state of a MediaQueryList changes (https://drafts.csswg.org/cssom-view/#mediaquerylistevent).
public sealed class MediaQueryListEvent : Event- Inheritance
EventMediaQueryListEvent
Constructors
| Name | Description |
|---|---|
| MediaQueryListEvent(string, MediaQueryListEventInit?) | Creates an event of the given type with the media and matching state of the initialization dictionary. |
MediaQueryListEvent(string, MediaQueryListEventInit?)
MediaQueryList.csCreates an event of the given type with the media and matching state of the initialization dictionary.
public MediaQueryListEvent(string type, MediaQueryListEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| Matches | Gets a value indicating whether the document matches the media query list. |
| Media | Gets the serialized media query list that changed. |
Matches
MediaQueryList.csGets a value indicating whether the document matches the media query list.
public bool Matches { get; }Media
MediaQueryList.csGets the serialized media query list that changed.
public string Media { get; }