The Dreamweaver JavaScript API > Selection functions > dom.source.getCurrentLines() |
Availability
Dreamweaver 4.0
Description
Returns the line numbers for the specified offset locations from the beginning of the document.
Arguments
startOffset, endOffset
startOffset is an integer representing the beginning line of text. |
|
endOffset is an integer representing the ending line of text. |
Returns
An array of two numbers representing the beginning and ending lines of the text between (and including) startOffset and endOffset. If startOffset and endOffset are not valid, returns -1 .