Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockGridModel

    The strongly typed model for the Block List editor.

    Inheritance
    object
    ReadOnlyCollection<BlockGridItem>
    BlockModelCollection<BlockGridItem>
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "blockgrid", Namespace = "")]
    public class BlockGridModel : BlockModelCollection<BlockGridItem>

    Constructors

    View Source

    BlockGridModel(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 Source

    Empty

    Gets the empty BlockGridModel.

    Declaration
    public static BlockGridModel Empty { get; }
    Property Value
    Type Description
    BlockGridModel

    The empty BlockGridModel.

    View Source

    GridColumns

    The number of columns in the grid

    Declaration
    public int? GridColumns { get; }
    Property Value
    Type Description
    int?
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX