SP.WebParts.WebPartDefinition Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.WebParts.WebPartDefinition class.

Methods

Name

Description

closeWebPart

Closes the Web Part.

deleteWebPart

Deletes the Web Part from the page.

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

moveWebPartTo

Moves the Web Part to a different location on a Web Part Page.

openWebPart

Opens the Web Part.

saveWebPartChanges

Saves changes to the Web Part made using other properties and methods on the WebPartDefinition object.

WebPartDefinition

Initializes a new instance of the SP.WebParts.WebPartDefinition Class class.

Applies To

SP.WebParts.WebPartDefinition Class

See Also

Reference

SP.WebParts.WebPartDefinition Properties

SP.WebParts Namespace