Gets the formatting style of the selected text.

Introduced: X16.

<void> Selection.getFormattingStyle(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

Parameter Description
callback Receives the formatting style of the selected text or an empty string when the text selection contains multiple characters with different styles.
errorCallback Optional. Is called when the operation failed with an error.