Table of Contents

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 IHtmlCanvasElement

The host the context.

contextId string

The 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 string

The ID of the context.

Returns

bool

True if the context is supported, otherwise false.