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>
Constructors
View SourceBlockGridModel(IList<BlockGridItem>, int?)
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. |
| int? | 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 |
|---|---|
| int? |