共用方式為


SP.ViewFieldCollection Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.ViewFieldCollection class.

Methods

Name

Description

add

Adds the field with the specified field internal name or display name to the collection.

initPropertiesFromJson

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

itemAt

Gets the field name at the specified index of the collection.

moveFieldTo

Moves the field with the specified field internal name to the specified position in the collection.

remove

Removes the field with the specified field internal name from the collection.

removeAll

Removes all the fields from the collection.

ViewFieldCollection

Initializes a new instance of the SP.ViewFieldCollection Class.

Applies To

SP.ViewFieldCollection Class

See Also

Reference

SP.ViewFieldCollection Properties

SP Namespace