Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockGridModel

    The strongly typed model for the Block List editor.

    Inheritance
    System.Object
    System.Collections.ObjectModel.ReadOnlyCollection<BlockGridItem>
    BlockModelCollection<BlockGridItem>
    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 Source

    BlockGridModel(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 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
    System.Nullable<System.Int32>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockGridModel(IList<BlockGridItem>, Nullable<Int32>)
    • Properties
      • Empty
      • GridColumns
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX