Share via


SPViewFieldCollection members

Represents the collection of fields returned in a view.

The SPViewFieldCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of view fields in the collection. (Overrides SPBaseCollection.Count.)
Public property Item Gets the internal name of the view field at the specified index in the collection.
Public property SchemaXml Gets the schema that specifies the view fields in the collection.
Public property View Gets the parent view for the collection.

Top

Methods

  Name Description
Public method Add(String) Adds the field with the specified name to the collection.
Public method Add(SPField) Adds the specified field to the collection.
Public method Delete(String) Deletes the field with the specified name from the collection.
Public method Delete(SPField) Deletes the specified field from the collection.
Public method DeleteAll Deletes all the view fields from the collection.
Public method Equals (Inherited from Object.)
Public method Exists Returns a Boolean value that indicates whether the specified view field exists.
Public method Explicit(Int32) Verifies whether the field at the specified index in the collection is explicitly declared in the view definition.
Public method Explicit(String) Verifies whether the field with the specified name in the collection is explicitly declared in the view definition.
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveFieldTo Moves the specified field to the specified position in the collection of view fields.
Public method MoveFieldTo_Client Moves a field to a particular position in the collection of view fields and update the view. The first position is 0.
Public method ToString (Inherited from Object.)
Public method ToStringCollection Loads the names of the view fields into a StringCollection object.

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPViewFieldCollection class

Microsoft.SharePoint namespace