createDataPackageFromSelection method
Converts the user’s or the applications’s selection to an HTML fragment that can be shared.
Syntax
var retVal = MSApp.createDataPackageFromSelection();
Parameters
This method has no parameters.
Return value
Type: any
Contains the HTML markup for the specified range.
Remarks
If there is no user selection anywhere within the application’s UI, the createDataPackageFromSelection returns null
.
The returned data package for the selection contains HTML markup in clipboard format.
Note There are no available properties for the returned data package.