Back to API Reference
Struct

InteractiveRange

sealed

Represents a clickable/hoverable range within text.

Remarks

Used by IInteractiveRangeProvider implementations to define interactive regions like links, hashtags, mentions, or custom clickable areas.
public static InteractiveRange None{ get }

Returns an empty/invalid range.

public bool IsValid{ get }

Returns true if this is a valid range (has non-null type).

[ctor]public InteractiveRange(int start, int end, string type, string data, int priority)

Creates an interactive range.

public bool Contains()

Returns true if the cluster is within this range.

public readonly int start

Start cluster index (inclusive).

public readonly int end

End cluster index (exclusive).

public readonly string type

Type identifier (e.g., "link", "hashtag", "mention").

public readonly string data

Associated data (URL, tag text, user ID, etc.).

public readonly int priority

Priority for resolving overlapping ranges. Higher wins.