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
EventCanvasPaintEvent
Constructors
| Name | Description |
|---|---|
| CanvasPaintEvent(string, CanvasPaintEventInit?) | Creates a paint event. |
CanvasPaintEvent(string, CanvasPaintEventInit?)
ElementImage.csCreates a paint event.
public CanvasPaintEvent(string type, CanvasPaintEventInit? eventInitDict = null)Parameters
typestring- The type of the event.
eventInitDictCanvasPaintEventInit?- The initialization dictionary.
See also
Properties
| Name | Description |
|---|---|
| ChangedElements | Gets the drawable elements whose rendering changed. |
ChangedElements
ElementImage.csGets the drawable elements whose rendering changed.
public IReadOnlyList<Element> ChangedElements { get; }