Class ContentAreaItemExtensions
Extension methods for Content
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public static class ContentAreaItemExtensions
Methods
GetContent(ContentAreaItem)
Gets the content for a Content
Declaration
public static IContent GetContent(this ContentAreaItem item)
Parameters
Type | Name | Description |
---|---|---|
Content |
item | The content area item. |
Returns
GetContent(ContentAreaItem, IContentLoader)
Gets the content for a Content
Declaration
[Obsolete("Use overload without IContentLoader or use contentLoader directly using ContentAreaItem.ContentLink (or ContentAreaItem.ContentGuid)")]
public static IContent GetContent(this ContentAreaItem item, IContentLoader contentLoader)
Parameters
Type | Name | Description |
---|---|---|
Content |
item | The item. |
IContent |
contentLoader | The content loader to use. |
Returns
LoadDisplayOption(ContentAreaItem)
Loads the Display
Declaration
public static DisplayOption LoadDisplayOption(this ContentAreaItem contentAreaItem)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentAreaItem | The content area item. |
Returns
Type | Description |
---|---|
Display |
A Display |
LoadDisplayOption(ContentAreaItem, DisplayOptions)
Loads the Display
Declaration
public static DisplayOption LoadDisplayOption(this ContentAreaItem contentAreaItem, DisplayOptions displayOptions)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentAreaItem | The content area item. |
Display |
displayOptions | The DisplayOptions registry |
Returns
Type | Description |
---|---|
Display |
A Display |