Interface IRenderingService
- Namespace
- AngleSharp.Media.Dom
- Assembly
- AngleSharp.dll
Represents a service for creating rendering contexts.
public interface IRenderingService
- Extension Methods
Methods
CreateContext(IHtmlCanvasElement, string)
Creates the given context or returns null, if this is not possible.
IRenderingContext CreateContext(IHtmlCanvasElement host, string contextId)
Parameters
host
IHtmlCanvasElementThe host the context.
contextId
stringThe ID of the context.
Returns
- IRenderingContext
The instance of the rendering context.
IsSupportingContext(string)
Checks if the given context is supported.
bool IsSupportingContext(string contextId)
Parameters
contextId
stringThe ID of the context.
Returns
- bool
True if the context is supported, otherwise false.