Class ContextExtensions
Extension methods for IHtmlParserContext
Inheritance
System.Object
ContextExtensions
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public static class ContextExtensions : Object
Methods
OptionEnabled(IHtmlParserContext, ParserOptions)
Determines if the specified option is enabled.
Declaration
public static bool OptionEnabled(this IHtmlParserContext context, ParserOptions option)
Parameters
| Type | Name | Description |
|---|---|---|
| IHtmlParserContext | context | The context to check the option for. |
| ParserOptions | option | The parser option. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
If you pass inmultiple ParserOption flags, this method will return True if at least one is set.