Class ContentAreaItem
The model for item that will be rendered in a Content
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentAreaItem : Object, IContentGroup, IRenderSettings, IReadOnly<ContentAreaItem>, IReadOnly
Constructors
ContentAreaItem()
Initializes a new instance of the Content
Declaration
public ContentAreaItem()
ContentAreaItem(ContentFragment)
Initializes a new instance of the Content
Declaration
public ContentAreaItem(ContentFragment fragment)
Parameters
Type | Name | Description |
---|---|---|
Content |
fragment | The inner fragment. |
Properties
AllowedRoles
Gets or sets a collection of roles which this Content
Declaration
public virtual IEnumerable<string> AllowedRoles { get; set; }
Property Value
Type | Description |
---|---|
System. |
ContentGroup
Gets or sets the content group that has been selected for this Content
Declaration
public virtual string ContentGroup { get; set; }
Property Value
Type | Description |
---|---|
System. |
ContentGuid
Gets or sets the content Guid.
Declaration
public virtual Guid ContentGuid { get; set; }
Property Value
Type | Description |
---|---|
System. |
The content Guid. |
ContentLink
Gets or sets the content link.
Declaration
public virtual ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
Content |
The content link. |
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System. |
RenderSettings
Gets or sets a dictionary of key values that can be used to customize the rendering of the Content
Declaration
public virtual IDictionary<string, object> RenderSettings { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
To set the display option of this Content
Methods
CreateWritableClone()
Creates the writable clone.
Declaration
public ContentAreaItem CreateWritableClone()
Returns
Type | Description |
---|---|
Content |
MakeReadOnly()
Makes this instance read only.
Declaration
public void MakeReadOnly()
Explicit Interface Implementations
IReadOnly.CreateWritableClone()
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type | Description |
---|---|
System. |