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.

    View Source

    RichTextBlockItem(Udi, IPublishedElement, Udi, IPublishedElement)

    Initializes a new instance of the RichTextBlockItem class.

    Declaration
    [Obsolete("Use constructor that accepts GUIDs instead. Scheduled for removal in Umbraco 18.")]
    public RichTextBlockItem(Udi contentUdi, IPublishedElement content, Udi settingsUdi, IPublishedElement settings)
    Parameters
    Type Name Description
    Udi contentUdi

    The content UDI.

    IPublishedElement content

    The content.

    Udi settingsUdi

    The settings UDI.

    IPublishedElement settings

    The settings.

    Exceptions
    Type Condition
    ArgumentNullException

    contentUdi or content

    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

    ContentUdi

    Gets the content UDI.

    Declaration
    [Obsolete("Use ContentKey instead. Scheduled for removal in Umbraco 18.")]
    public Udi ContentUdi { get; }
    Property Value
    Type Description
    Udi

    The content UDI.

    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

    SettingsUdi

    Gets the settings UDI.

    Declaration
    [Obsolete("Use SettingsKey instead. Scheduled for removal in Umbraco 18.")]
    public Udi? SettingsUdi { get; }
    Property Value
    Type Description
    Udi

    The settings UDI.

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