PageLayout Class

Represents a Microsoft SharePoint Server 2010 page layout. This class cannot be inherited.


Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class PageLayout

The PageLayout class provides publishing-related behavior for page layouts within a site collection's master page gallery, where it is stored as a document list item. It defines the common look and feel for how PublishingPage objects appear in the site.

The PageLayout class wraps the SPListItem class. It also exposes the underlying SPListItem directly through the ListItem property so that additional SPListItem and File functionality can be accessed easily.

You can use the public constructor PageLayout(SPListItemlistItem) to create an instance of a PageLayout object. You can also instantiate a PageLayout object by retrieving it from a PageLayoutCollection collection.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.