Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockListModel

    The strongly typed model for the Block List editor.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    public class BlockListModel : ReadOnlyCollection<BlockListItem>

    Constructors

    View Source

    BlockListModel(IList<BlockListItem>)

    Initializes a new instance of the BlockListModel class.

    Declaration
    public BlockListModel(IList<BlockListItem> list)
    Parameters
    Type Name Description
    IList<BlockListItem> list

    The list to wrap.

    Properties

    View Source

    Empty

    Gets the empty BlockListModel.

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

    The empty BlockListModel.

    View Source

    Item[Guid]

    Gets the BlockListItem with the specified content key.

    Declaration
    public BlockListItem this[Guid contentKey] { get; }
    Parameters
    Type Name Description
    Guid contentKey

    The content key.

    Property Value
    Type Description
    BlockListItem

    The BlockListItem.

    View Source

    Item[Udi]

    Gets the BlockListItem with the specified content UDI.

    Declaration
    public BlockListItem this[Udi contentUdi] { get; }
    Parameters
    Type Name Description
    Udi contentUdi

    The content UDI.

    Property Value
    Type Description
    BlockListItem

    The BlockListItem.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockListModel(IList<BlockListItem>)
    • Properties
      • Empty
      • Item[Guid]
      • Item[Udi]
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX