| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Sat, 27 Dec 2025 19:36:41 GMT
content-type: text/html
content-length: 162
location: /api-reference/color-presentation-context/
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000;
HTTP/2 200
server: nginx
date: Sat, 27 Dec 2025 19:36:41 GMT
content-type: text/html
last-modified: Tue, 26 Aug 2025 18:14:18 GMT
vary: Accept-Encoding
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
content-encoding: gzip
strict-transport-security: max-age=31536000;
ColorPresentationContext - Nova
RESULTS:
No Results
Building Extensions
Contributing Languages
JavaScript API Reference
ColorPresentationContext
Information about a request for color presentations
A ColorPresentationContext object contains contextual information about a request to provide a set of ColorPresentation for a Color object. A color presentation context is provided as part of an invocation of the provideColorPresentations(color, editor, context) for a color assistant.
The ColorPresentationContext class is not subclassable.
Added in Nova 5.
Properties
range
The range of text within the editor into which a presentation will be inserted if accepted by the user, as a Range. This value may be used to compute a TextEdit object to assign to a color presentation.
This property is readonly.