November Happy Hour will be moved to Thursday December 5th.

Class ContextExtensions

Extension methods for IHtmlParserContext

Inheritance
System.Object
ContextExtensions
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
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

true if the specified option is enabled; otherwise, false.

Remarks

If you pass inmultiple ParserOption flags, this method will return True if at least one is set.