evCreate API 5.7 Help

SetCellText Function

Replaces the characters given as a continuous range in a given cell of a given table item from an Envision document currently opened in the Canvas Envision Creator app with given new text and Markdown formatting.

SetCellText( tableObj: [[[EvItem|canvas-envision-document-items.html#object-items]]], cell: [[[EvTableCellIndex|evtablecellindex-type-alias.html]]], text: string, span?: [[[EvCharSpan|evcharspan-interface.html]]], withMarkdown?: boolean ): Promise<void>

Parameters

tableObj: EvItem

An Object item object, a table item from the Envision document currently opened in the Canvas Envision Creator app that includes the given cell with the given range of characters that should be replaced.

If a given object item is not a table, the function throws an error.

cell: EvTableCellIndex

An EvTableCellIndex object, an array of the row and column indices of a given cell with the given range of characters that should be replaced.

text: string

A string, a given new text that should replace the characters within the given range in the given cell of the given table item.

span?: EvCharSpan

An EvCharSpan object, a given continuous range of the characters that should be replaced with the given new text.

The default value is the entire text in the given cell.

withMarkdown?: boolean

A Boolean, a flag to indicate whether the given new text includes (true) or does not include (false) Markdown formatting.

The default value is false.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given new text has successfully replaced the characters within the given range in the given cell of the given table item in the current document.

17 April 2025