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
IResponseThe response with the stream representing the source of the stylesheet.
options
StyleOptionsThe options with the parameters for evaluating the style.
cancel
CancellationTokenThe 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
stringThe type of the style.
Returns
- bool
True if the type is supported, otherwise false.