Class BlockListModel
The strongly typed model for the Block List editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "blockList", Namespace = "")]
public class BlockListModel : BlockModelCollection<BlockListItem>, IList<BlockListItem>, ICollection<BlockListItem>, IReadOnlyList<BlockListItem>, IReadOnlyCollection<BlockListItem>, IEnumerable<BlockListItem>, IList, ICollection, IEnumerable
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 |