This site is currently undergoing maintenance, so instances of "RelativityOne" may still be present. You may also experience 404 errors, search disruptions, and temporary style changes.

Last date modified: 2026-Sep-09

Interface: IHighlightSetListenerAdd()

Listener function for the [[RangeHighlightSet]], [[TermHighlightSet]] and [[AllHighlights]] add events. This event is fired when one or more new highlights have been added to the set.

The arguments to this event listener are as follows:

  • highlightSet: The [[RangeHighlightSet]], [[TermHighlightSet]] or [[AllHighlights]] object
  • highlights: An array of affected [[Highlight]] objects
  • Additional arguments that were passed in to onadd or onaddonce.

IHighlightSetListenerAdd(highlightSet, highlights, refObject?, ...args?): void

Listener function for the [[RangeHighlightSet]], [[TermHighlightSet]] and [[AllHighlights]] add events. This event is fired when one or more new highlights have been added to the set.

The arguments to this event listener are as follows:

  • highlightSet: The [[RangeHighlightSet]], [[TermHighlightSet]] or [[AllHighlights]] object
  • highlights: An array of affected [[Highlight]] objects
  • Additional arguments that were passed in to onadd or onaddonce.

Parameters

• highlightSet: HighlightSetMemento

• highlights: HighlightMemento[]

• refObject?: any

• ...args?: any[]

Returns

void

Feedback