Back to API Reference
Class

TagRule

Inherits:TagParseRule

A parse rule matching a configurable tag name.

Remarks

Parameters are always optional. Self-closing is syntax-driven via />. <tag>text</tag> — range with no parameter <tag=value>text</tag> — range with parameter <tag/> — self-closing, no parameter <tag=value/> — self-closing with parameter When DefaultParameter is set, tags without parameters use it as a fallback. Tags with partial parameters merge with the default (tag values take priority).

Derived Types(1)

Types that inherit from TagRule.

public string Tag{ get; set }

Gets or sets the matched tag name without angle brackets.

public string DefaultParameter{ get; set }

Gets or sets fallback parameter slots; authored tag values take precedence.

public string Name{ get }

Gets the matched tag name without angle brackets.

public string TagName{ get }
[ctor]public TagRule()
[ctor]public TagRule()
public override string ToString()
public override int TryMatch()
public override void Finalize()