次の方法で共有


createDataPackage method

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

Internet Explorer 10

 

Syntax

var retVal = MSApp.createDataPackage(object);

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