Class BlockGridModel
The strongly typed model for the Block List editor.
Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "blockgrid", Namespace = "")]
public class BlockGridModel : BlockModelCollection<BlockGridItem>, IList<BlockGridItem>, ICollection<BlockGridItem>, IReadOnlyList<BlockGridItem>, IReadOnlyCollection<BlockGridItem>, IEnumerable<BlockGridItem>, IList, ICollection, IEnumerable
Constructors
View SourceBlockGridModel(IList<BlockGridItem>, Nullable<Int32>)
Initializes a new instance of the BlockGridModel class.
Declaration
public BlockGridModel(IList<BlockGridItem> list, int? gridColumns)
Parameters
Type | Name | Description |
---|---|---|
IList<BlockGridItem> | list | The list to wrap. |
System.Nullable<System.Int32> | gridColumns | The number of columns in the grid |
Properties
View SourceEmpty
Gets the empty BlockGridModel.
Declaration
public static BlockGridModel Empty { get; }
Property Value
Type | Description |
---|---|
BlockGridModel | The empty BlockGridModel. |
GridColumns
The number of columns in the grid
Declaration
public int? GridColumns { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |