Class ContentAreaItemExtensions
Extension methods for Content
Inheritance
System.Object
ContentAreaItemExtensions
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class ContentAreaItemExtensions : Object
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
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 |