RichEditCommands.getRtf Property
In This Article
Gets a command to receive RTF formatted content from the document in the specified range.
#Declaration
TypeScript
get getRtf(): GetRtfCommand
#Property Value
Type | Description |
---|---|
Get |
An object that provides methods that execute the command and check its state. |
#Remarks
Call the execute(interval, callback) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.
Usage example:
var interval = new ASPx.Interval(2,3);
var callbackFunc = function (RTFstring) {}
var subDocumentId = richEdit.document.mainSubDocument.id;
richEdit.commands.getRtf.execute(interval, callbackFunc);
richEdit.commands.getRtf.execute(interval, callbackFunc, subDocumentId);
Refer to the following section for more information: Client Commands.
See Also