HtmlTagContext.IsEndTag property
The IsEndTag property gets a Boolean value indicating whether the tag that caused the callback to the HtmlTagCallback delegate is an end tag.
Namespace: Microsoft.Exchange.Data.TextConverters
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public ReadOnly Property IsEndTag As Boolean
Get
'Usage
Dim instance As HtmlTagContext
Dim value As Boolean
value = instance.IsEndTag
public bool IsEndTag { get; }
Property value
Type: System.Boolean
The IsEndTag property returns true if the current tag is an end tag. Otherwise it returns false.
Remarks
By default, callbacks are not called for end tags. This means that, for example, if you never set InvokeCallbackForEndTag to true during a callback caused by an opening tag, then you will never receive an HtmlTagContext object that has a value of true for the IsEndTag property.
Note that if the value of the IsEndTag property is true, the following are ignored;
The DeleteInnerContent method
The keepEndTag parameter of the DeleteTag method
The InvokeCallbackForEndTag method
The copyInputAttributes parameter of the WriteTag method.