SP.WebParts.WebPartDefinitionCollection.item property (sp.js)

Gets the Web Part definition at the specified index in the collection.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value =SP.WebParts.WebPartDefinitionCollection.get_item( index)

Parameters

  • index
    The zero-based index of the element.

Return value

Returns a SP.WebParts.WebPartDefinition

The Web Part definition at the specified index of the collection.