Class ContentAreaItemExtensions
Extension methods for ContentArea.
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 ContentAreaItem
Declaration
public static IContent GetContent(this ContentAreaItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentAreaItem | item | The content area item. |
Returns
| Type | Description |
|---|---|
| IContent | An IContent instance. |
LoadDisplayOption(ContentAreaItem)
Loads the DisplayOption for the current ContentAreaItem if set in the RenderSettings dictionary.
Declaration
public static DisplayOption LoadDisplayOption(this ContentAreaItem contentAreaItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentAreaItem | contentAreaItem | The content area item. |
Returns
| Type | Description |
|---|---|
| DisplayOption | A DisplayOption instance or null if the id is not found in the render settings. |
LoadDisplayOption(ContentAreaItem, DisplayOptions)
Loads the DisplayOption for the current ContentAreaItem if set in the RenderSettings dictionary.
Declaration
public static DisplayOption LoadDisplayOption(this ContentAreaItem contentAreaItem, DisplayOptions displayOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentAreaItem | contentAreaItem | The content area item. |
| DisplayOptions | displayOptions | The DisplayOptions registry |
Returns
| Type | Description |
|---|---|
| DisplayOption | A DisplayOption instance or null if the id is not found in the render settings. |