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:

Parameter Type Description
from number The start position.
to? number | undefined The end position.
lineSep? string | undefined The line separator to use.

Returns: stringThe string content.