PageLayoutCollection members

Creates a collection of PageLayout objects.

The PageLayoutCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items in the collection. (Inherited from CollectionBase<T>.)
Protected property FileExtension Gets the default file name extension for PageLayout objects.
Public property IsSynchronized Gets whether the collection is synchronized. (Inherited from CollectionBase<T>.)
Public property Item[Int32] Gets the item at the specified index. (Inherited from CollectionBase<T>.)
Public property Item[Guid] Gets an item by its unique identifier (ID). (Inherited from QueryBasedCollection<T>.)
Public property Item[String] Gets an item by its Web-relative URL. (Inherited from QueryBasedCollection<T>.)
Public property LayoutsDocumentLibrary Gets the SPDocumentLibrary where the PageLayout objects in this PageLayoutCollection are stored.
Protected property MasterGalleryFolder Gets or sets the name of the folder that contains the master page gallery.
Protected property PreviewImageFolder Gets or sets the name of the folder that contains preview images.
Public property RowLimit Gets the maximum number of items that can be contained in a collection that is using data paging. (Inherited from QueryBasedCollection<T>.)
Protected property Site Gets the name of the site.
Public property SyncRoot Gets the object that can be used to synchronize access to this collection. (Inherited from CollectionBase<T>.)

Top

Methods

  Name Description
Public method Add(String, SPContentTypeId) Creates and adds a new PageLayout object.
Public method Add(String, SPContentTypeId, String) Creates and adds a new PageLayout object.
Public method Contains Determines whether a PageLayout object with a specific name exists in the specified SPFolder object.
Public method CopyTo Copies the internal collection to the specified array, starting at the specified index. (Inherited from CollectionBase<T>.)
Public method Delete Removes a PageLayout object from a given SPFolder object.
Protected method EnsureItemIsUnique Verifies whether the current item has already been retrieved. (Inherited from QueryBasedCollection<T>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns a generic enumerator that can iterate through this generic CollectionBase instance. (Inherited from CollectionBase<T>.)
Public method GetHashCode (Inherited from Object.)
Protected method GetLayoutFileName Returns the file name with the default page layout file name extension appended.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method QueryNext Advances the collection to the next subset of paged data. (Inherited from QueryBasedCollection<T>.)
Public method ToArray Creates an array of the PageLayout objects in this PageLayoutCollection object.
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets an enumerator that can iterate through the CollectionBase. (Inherited from CollectionBase<T>.)

Top

See also

Reference

PageLayoutCollection class

Microsoft.SharePoint.Publishing namespace