Back to API Reference
Struct

ParsedRange

sealed

Represents a parsed text range with associated tag information.

Remarks

Used by IParseRule implementations to communicate which text regions should be affected by modifiers and where tags should be stripped.
public bool HasTags{ get }

Returns true if this range has associated tags.

public bool IsSelfClosing{ get }

Returns true if this is a self-closing tag with inserted content.

[ctor]public ParsedRange()

Creates a simple range without tag information.

[ctor]public ParsedRange()

Creates a range with opening and closing tag positions.

public static ParsedRange SelfClosing()

Creates a self-closing tag range that inserts content.

public int start

Start index of the content (after opening tag).

public int end

End index of the content (before closing tag).

public int tagStart

Start index of the opening tag, or -1 if no tag.

public int tagEnd

End index of the opening tag.

public int closeTagStart

Start index of the closing tag.

public int closeTagEnd

End index of the closing tag.

public string parameter

Parameter extracted from the tag (e.g., color value).

public string insertString

String to insert for self-closing tags.