CanvasPaintEvent Class

  • Experimental (WEBPLATEXP0023)

The paint event of a canvas whose content is drawable (https://github.com/WICG/html-in-canvas): fired by a rendering update when the rendering of drawable elements changed, or after HtmlCanvasElement.RequestPaint.

[Experimental("WEBPLATEXP0023", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public sealed class CanvasPaintEvent : Event
Inheritance
Event CanvasPaintEvent

Constructors

NameDescription
CanvasPaintEvent(string, CanvasPaintEventInit?)Creates a paint event.

CanvasPaintEvent(string, CanvasPaintEventInit?)

ElementImage.cs

Creates a paint event.

public CanvasPaintEvent(string type, CanvasPaintEventInit? eventInitDict = null)

Parameters

type string
The type of the event.
eventInitDict CanvasPaintEventInit?
The initialization dictionary.

See also

Properties

NameDescription
ChangedElementsGets the drawable elements whose rendering changed.

ChangedElements

ElementImage.cs

Gets the drawable elements whose rendering changed.

public IReadOnlyList<Element> ChangedElements { get; }