Class HtmlRewriteEventArgs
Arguments for various events raised by the HTML rewriter-parser
Inheritance
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class HtmlRewriteEventArgs : EventArgs
Constructors
HtmlRewriteEventArgs()
Initializes a new instance of the HtmlRewriteEventArgs class.
Declaration
public HtmlRewriteEventArgs()
HtmlRewriteEventArgs(RewritePipe)
Initializes a new instance of the HtmlRewriteEventArgs class.
Declaration
public HtmlRewriteEventArgs(RewritePipe rewritePipe)
Parameters
Type | Name | Description |
---|---|---|
RewritePipe | rewritePipe | The rewrite pipe. |
HtmlRewriteEventArgs(RewritePipe, Object)
Initializes a new instance of the HtmlRewriteEventArgs class.
Declaration
public HtmlRewriteEventArgs(RewritePipe rewritePipe, object context)
Parameters
Type | Name | Description |
---|---|---|
RewritePipe | rewritePipe | The rewrite pipe. |
System.Object | context | The context. |
HtmlRewriteEventArgs(Object)
Initializes a new instance of the HtmlRewriteEventArgs class.
Declaration
public HtmlRewriteEventArgs(object context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | context | The context. |
Properties
Context
Gets or sets an opaque context
Declaration
public object Context { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
HtmlElementType
Gets or sets the type of the element.
Declaration
public HtmlRewriteElementType HtmlElementType { get; set; }
Property Value
Type | Description |
---|---|
HtmlRewriteElementType | The type of the element. |
IsEmptyElement
Gets or sets a value indicating whether this is an empty element.
Declaration
public bool IsEmptyElement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsHoldingOutput
Gets or sets a value indicating whether we should be holding output. This requires the external event handlers to take care of things.
Declaration
public bool IsHoldingOutput { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInsidePreventUrlElement
Gets or sets the flag telling if it´s inside an element with the prevent url attrebute.
Declaration
public bool IsInsidePreventUrlElement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The quote char. |
Name
Gets or sets the name of the element, attribute etc.
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
NameBuilder
Gets or sets the StringBuilder aspect of the Name.
Declaration
public StringBuilder NameBuilder { get; protected set; }
Property Value
Type | Description |
---|---|
System.Text.StringBuilder | The StringBuilder |
NodeType
Gets or sets the type of the node.
Declaration
public XmlNodeType NodeType { get; set; }
Property Value
Type | Description |
---|---|
System.Xml.XmlNodeType | The type of the node. |
QuoteChar
Gets or sets the quote char used in attribute value definitions.
Declaration
public char QuoteChar { get; set; }
Property Value
Type | Description |
---|---|
System.Char | The quote char. |
RewritePipe
Gets or sets the HtmlRewritePipe instance.
Declaration
public RewritePipe RewritePipe { get; set; }
Property Value
Type | Description |
---|---|
RewritePipe | The HtmlRewritePipe instance. |
Value
Gets or sets the value of the element, attribute etc.
Declaration
public string Value { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | The value. |
ValueBuilder
Gets or sets the StringBuilder aspect of the Value
Declaration
public StringBuilder ValueBuilder { get; protected set; }
Property Value
Type | Description |
---|---|
System.Text.StringBuilder | The StringBuilder |