type property

HighlightType get type

The type property of the Highlight interface is an enumerated String used to specify the meaning of the highlight. This allows assistive technologies, such as screen readers, to include this meaning when exposing the highlight to users.

By default, a highlight object will have its type set to highlight, but you can change it to spelling-error or grammar-error.

Implementation

external HighlightType get type;
set type (HighlightType value)

Implementation

external set type(HighlightType value);