Skip to main content

RichEditCommands.getRtf Property

Gets a command to receive RTF formatted content from the document in the specified range.


get getRtf(): GetRtfCommand

Property Value

Type Description

An object that provides methods that execute the command and check its state.


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.commands.getRtf.execute(interval, callbackFunc);
richEdit.commands.getRtf.execute(interval, callbackFunc, subDocumentId);

Refer to the following section for more information: Client Commands.

See Also