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: 8.11.0Syntax
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 |
|
Remarks
If you pass inmultiple ParserOption flags, this method will return True if at least one is set.