SaaS CMS has officially launched! Learn more now.

Class ContextExtensions

Extension methods for IHtmlParserContext

Inheritance
System.Object
ContextExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public static class ContextExtensions

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.