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 | |
---|---|---|
Attributes | The Attributes property contains a collection of the attributes contained in the tag that caused the callback to the HtmlTagCallback delegate. | |
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. | |
IsEndTag | The IsEndTag property gets a Boolean value indicating whether the tag that caused the callback to the HtmlTagCallback delegate is an end tag. | |
TagId | The TagId property gets a HtmlTagId enumeration value that identifies the tag that caused the callback to the HtmlTagCallback delegate. | |
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 | |
---|---|---|
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. | |
DeleteTag() | The DeleteTag method suppresses the output of the tag that caused the callback to the HtmlTagCallback delegate from the output of the conversion. | |
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. | |
InvokeCallbackForEndTag | The InvokeCallbackForEndTag method causes the callback to be called for the current tag's corresponding end tag. | |
WriteTag() | The WriteTag method writes the tag that caused the callback to the output. | |
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