HtmlTagContext members

The HtmlTagContext class is passed to the HtmlTagCallback delegate and is used to get information about the tag that caused the callback and to filter the tag as it is written to the output.

The HtmlTagContext type exposes the following members.

Properties

  Name Description
Public property Attributes The Attributes property contains a collection of the attributes contained in the tag that caused the callback to the HtmlTagCallback delegate.
Public property IsEmptyElementTag The IsEmptyElementTag property gets a Boolean value indicating whether the tag that caused the callback to the HtmlTagCallback delegate is an empty element tag.
Public property IsEndTag The IsEndTag property gets a Boolean value indicating whether the tag that caused the callback to the HtmlTagCallback delegate is an end tag.
Public property TagId The TagId property gets a HtmlTagId enumeration value that identifies the tag that caused the callback to the HtmlTagCallback delegate.
Public property TagName The TagName property gets a string containing the name of the tag that caused the callback to the HtmlTagCallback delegate.

Top

Methods

  Name Description
Public method DeleteInnerContent The DeleteInnerContent method suppresses the output of the content between the tag that caused the callback to the HtmlTagCallback delegate and its end tag.
Public method DeleteTag() The DeleteTag method suppresses the output of the tag that caused the callback to the HtmlTagCallback delegate from the output of the conversion.
Public method DeleteTag(Boolean) The DeleteTag method suppresses the output of the tag that caused the callback to the HtmlTagCallback delegate from the output of the conversion and allows you to control whether output of the end tag is also suppressed.
Public method InvokeCallbackForEndTag The InvokeCallbackForEndTag method causes the callback to be called for the current tag's corresponding end tag.
Public method WriteTag() The WriteTag method writes the tag that caused the callback to the output.
Public method WriteTag(Boolean) The WriteTag method writes the tag that caused the callback to the output and optionally controls whether the attributes originally present are written.

Top

See also

Reference

HtmlTagContext class

Microsoft.Exchange.Data.TextConverters namespace