SP.WebParts.WebPartDefinitionCollection object (sp.js)

Implements a collection of Web Part definition objects.

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

var object = new SP.WebParts.WebPartDefinitionCollection()

Members

The WebPartDefinitionCollection object has the following members.

Constructor

The WebPartDefinitionCollection object has the following constructor.

Constructor

Description

WebPartDefinitionCollection

Initializes a new instance of the SP.WebParts.WebPartDefinitionCollection object (sp.js).

Methods

The WebPartDefinitionCollection object has the following methods.

Method

Description

getByControlId

Returns the Web Part definition object in the collection with a Web Part identifier equal to the controlId parameter.

getById

Returns the Web Part definition object in the collection with a Web Part identifier equal to the id parameter.

itemAt

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

Properties

The WebPartDefinitionCollection object has the following properties.

Property

Description

childItemType

item

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