共用方式為


insertFragment method

Inserts a fragment into the composer site at the specified index.

Syntax

HRESULT retVal = object.insertFragment(attributeName, fragment, index);

Parameters

  • attributeName [in]
    Type: BSTR

    Specifies the animation attribute name.

  • fragment [in]
    Type: IDispatch

    Pointer to the dispatch of the fragment to insert.

  • index [in]
    Type: VARIANT

    Specifies the index of the fragment to insert.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

insertFragment was introduced in Microsoft Internet Explorer 6