RichEditCommands.getRtf Property
Gets a command to receive RTF formatted content from the document in the specified range.
Declaration
get getRtf(): GetRtfCommand
Property Value
Type | Description |
---|---|
GetRtfCommand | 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