createDataPackage method

Converts the user’s or the applications’s specified range to an HTML fragment that can be shared.

Syntax

object.createDataPackage(object, retVal)

Parameters

object [in]

Type: any

This range can be created either from a selection object (for example, window.selection.getRangeAt(0)) or manually.

Return value

Type: any

Contains the HTML markup for the specified range.

Remarks

This method supports only Document Object Model (DOM)Range, not TextRange. The returned data package for the specified range contains HTML markup in clipboard format.

Note  There are no available properties for the returned data package.

See also

MSApp
createRange
selection
getRangeAt
createDataPackageFromSelection

 

 

Show:
© 2014 Microsoft