Skip to content

CmText.sliceString method

CmText › sliceString

Unofficial

Return the document as a string, using newline characters to separate lines.

Signature:

sliceString(from: number, to?: number | undefined, lineSep?: string | undefined): string

Parameters:

ParameterTypeDescription
fromnumberThe start position.
to?number | undefinedThe end position.
lineSep?string | undefinedThe line separator to use.

Returns: stringThe string content.