TagRuleTypes Enumeration
Defines the available modes of processing of an HTML tag for the Rule object.

Namespace: MailBee.Html
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public enum TagRuleTypes
Members
  Member nameValueDescription
ProcessingCondition0 Just execute the delegate.
ProcessingRule1 Execute the delegate (if defined). If the delegate returned true or was not defined, process the HTML element.
RemovalRule2 Execute the delegate (if defined). If the delegate returned true or was not defined, remove the HTML element with its inner contents.
ReplacementRule3 Execute the delegate (if defined). If the delegate returned true or was not defined, replace the HTML element with another tag definition or entire HTML element. The degree of the replacement (replace just the tag defintion or the entire tag including its inner contents) depends on the rule settings.
Remarks

These modes define actions to be performed when Process(RuleSet, ProcessElementDelegate) method encounters HTML tag matching certain Rule in the RuleSet (denoted by rules parameter).

Rules of all types cause execution of the delegate when their conditions are met. Rules of all types except ProcessingCondition honor returned value of the delegate and do not apply the rule if the delegate returned false. ProcessingCondition does not do anything itself anyway and thus returned value is not important.

The delegate will only be executed if it was defined (del parameter of Process(RuleSet, ProcessElementDelegate) method is not a null reference).

The above also applies to ProcessToString(RuleSet, ProcessElementDelegate) method in the same way as to Process(RuleSet, ProcessElementDelegate) method.

Examples
See Also