Table of Contents

Interface IStylingService

Namespace
AngleSharp.Css
Assembly
AngleSharp.dll

Defines the API of an available engine for computing the stylesheet.

public interface IStylingService
Extension Methods

Methods

ParseStylesheetAsync(IResponse, StyleOptions, CancellationToken)

Parses a style sheet for the given response asynchronously.

Task<IStyleSheet> ParseStylesheetAsync(IResponse response, StyleOptions options, CancellationToken cancel)

Parameters

response IResponse

The response with the stream representing the source of the stylesheet.

options StyleOptions

The options with the parameters for evaluating the style.

cancel CancellationToken

The cancellation token.

Returns

Task<IStyleSheet>

The task resulting in the style sheet.

SupportsType(string)

Checks if the given type is supported.

bool SupportsType(string mimeType)

Parameters

mimeType string

The type of the style.

Returns

bool

True if the type is supported, otherwise false.