Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyEditorCollection

    Represents a collection of property editors (IDataEditor).

    Inheritance
    object
    BuilderCollectionBase<IDataEditor>
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    public class PropertyEditorCollection : BuilderCollectionBase<IDataEditor>, IBuilderCollection<IDataEditor>

    Constructors

    View Source

    PropertyEditorCollection(DataEditorCollection)

    Initializes a new instance of the PropertyEditorCollection class.

    Declaration
    public PropertyEditorCollection(DataEditorCollection dataEditors)
    Parameters
    Type Name Description
    DataEditorCollection dataEditors

    The data editor collection.

    Properties

    View Source

    this[string?]

    Gets the property editor with the specified alias.

    Declaration
    public virtual IDataEditor? this[string? alias] { get; }
    Parameters
    Type Name Description
    string alias

    The editor alias.

    Property Value
    Type Description
    IDataEditor

    The property editor if found; otherwise, null.

    Remarks

    Virtual so it can be mocked.

    Methods

    View Source

    TryGet(string?, out IDataEditor)

    Tries to get the property editor with the specified alias.

    Declaration
    public virtual bool TryGet(string? alias, out IDataEditor editor)
    Parameters
    Type Name Description
    string alias

    The editor alias.

    IDataEditor editor

    When this method returns, contains the editor if found; otherwise, null.

    Returns
    Type Description
    bool

    true if the editor was found; otherwise, false.

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