Class BlockGridItem<T>
Represents a layout item with a generic content type for the Block List editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public class BlockGridItem<T> : BlockGridItem, IBlockReference<IPublishedElement, IPublishedElement>, IBlockReference<IPublishedElement>, IBlockReference where T : IPublishedElement
Type Parameters
| Name | Description |
|---|---|
| T | The type of the content. |
Constructors
View SourceBlockGridItem(Guid, T, Nullable<Guid>, IPublishedElement)
Declaration
public BlockGridItem(Guid contentKey, T content, Guid? settingsKey, IPublishedElement settings)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | contentKey | |
| T | content | |
| System.Nullable<Guid> | settingsKey | |
| IPublishedElement | settings |
BlockGridItem(Udi, T, Udi, IPublishedElement)
Initializes a new instance of the BlockGridItem<T> class.
Declaration
public BlockGridItem(Udi contentUdi, T content, Udi settingsUdi, IPublishedElement settings)
Parameters
| Type | Name | Description |
|---|---|---|
| Udi | contentUdi | The content UDI. |
| T | content | The content. |
| Udi | settingsUdi | The settings UDI. |
| IPublishedElement | settings | The settings. |
Properties
View SourceContent
Gets the content.
Declaration
public T Content { get; }
Property Value
| Type | Description |
|---|---|
| T | The content. |