Windows Dev Center

EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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.

See also

MSApp
createRange
selection
getRangeAt
createDataPackage

 

 

Afficher:
© 2015 Microsoft