ContentChangeEvent
in package
An event describing a change to a text document. If range and rangeLength are omitted the new text is considered to be the full content of the document.
Table of Contents
Properties
- $range : Range|null
- The range of the document that changed.
- $rangeLength : int|null
- The length of the range that got replaced.
- $text : string
- The new text of the document.
Methods
- __construct() : mixed
Properties
$range
The range of the document that changed.
public
Range|null
$range
$rangeLength
The length of the range that got replaced.
public
int|null
$rangeLength
$text
The new text of the document.
public
string
$text
Methods
__construct()
public
__construct([Range|null $range = null ][, int|null $rangeLength = null ][, string|null $text = null ]) : mixed
Parameters
- $range : Range|null = null
- $rangeLength : int|null = null
- $text : string|null = null