ReplaceCurrentSentence
Replaces the current sentence with the specified string.
Syntax
expression.ReplaceCurrentSentence(replaceString, type);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
replaceString | Required | string | Replacement string. | |
type | Optional | TextPartType | "entirely" | Specifies if the whole sentence or only its part will be replaced. |
Returns
This method doesn't return any data.
Example
window.Asc.plugin.executeMethod ("ReplaceCurrentSentence", ["ONLYOFFICE", "entirely"]);