Class BlockListModel
The strongly typed model for the Block List editor.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
public class BlockListModel : ReadOnlyCollection<BlockListItem>
Constructors
View SourceBlockListModel(IList<BlockListItem>)
Initializes a new instance of the Block
Declaration
public BlockListModel(IList<BlockListItem> list)
Parameters
Type | Name | Description |
---|---|---|
IList<Block |
list | The list to wrap. |
Properties
View SourceEmpty
Gets the empty Block
Declaration
public static BlockListModel Empty { get; }
Property Value
Type | Description |
---|---|
Block |
The empty Block |
Item[Guid]
Gets the Block
Declaration
public BlockListItem this[Guid contentKey] { get; }
Parameters
Type | Name | Description |
---|---|---|
Guid | contentKey | The content key. |
Property Value
Type | Description |
---|---|
Block |
The Block |
Item[Udi]
Gets the Block
Declaration
public BlockListItem this[Udi contentUdi] { get; }
Parameters
Type | Name | Description |
---|---|---|
Udi | contentUdi | The content UDI. |
Property Value
Type | Description |
---|---|
Block |
The Block |