Search Results for

    Show / Hide Table of Contents
    View Source

    Class RichTextBlockItem

    Represents a layout item for the Block List editor.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "block", Namespace = "")]
    public class RichTextBlockItem : IBlockReference<IPublishedElement, IPublishedElement>, IBlockReference<IPublishedElement>, IBlockReference

    Constructors

    View Source

    RichTextBlockItem(Guid, IPublishedElement, Guid?, IPublishedElement?)

    Initializes a new instance of the RichTextBlockItem class.

    Declaration
    public RichTextBlockItem(Guid contentKey, IPublishedElement content, Guid? settingsKey, IPublishedElement? settings)
    Parameters
    Type Name Description
    Guid contentKey

    The content key.

    IPublishedElement content

    The content.

    Guid? settingsKey

    The settings key.

    IPublishedElement settings

    The settings.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when content is null.

    Properties

    View Source

    Content

    Gets the content.

    Declaration
    public IPublishedElement Content { get; }
    Property Value
    Type Description
    IPublishedElement

    The content.

    View Source

    ContentKey

    Gets or sets the content key.

    Declaration
    public Guid ContentKey { get; set; }
    Property Value
    Type Description
    Guid

    The content key.

    View Source

    Settings

    Gets the settings.

    Declaration
    public IPublishedElement? Settings { get; }
    Property Value
    Type Description
    IPublishedElement

    The settings.

    View Source

    SettingsKey

    Gets or sets the settings key.

    Declaration
    public Guid? SettingsKey { get; set; }
    Property Value
    Type Description
    Guid?

    The settings key.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX