Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyGroup

    Represents a group of property types.

    Inheritance
    object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [Serializable]
    [DataContract(IsReference = true)]
    public class PropertyGroup : EntityBase, IRememberBeingDirty, ICanBeDirty, IEntity, IDeepCloneable

    Constructors

    View Source

    PropertyGroup(bool)

    Declaration
    public PropertyGroup(bool isPublishing)
    Parameters
    Type Name Description
    bool isPublishing
    View Source

    PropertyGroup(PropertyTypeCollection)

    Declaration
    public PropertyGroup(PropertyTypeCollection propertyTypeCollection)
    Parameters
    Type Name Description
    PropertyTypeCollection propertyTypeCollection

    Properties

    View Source

    Alias

    Gets or sets the alias of the group.

    Declaration
    [DataMember]
    public string Alias { get; set; }
    Property Value
    Type Description
    string

    The alias.

    View Source

    Name

    Gets or sets the name of the group.

    Declaration
    [DataMember]
    public string? Name { get; set; }
    Property Value
    Type Description
    string

    The name.

    View Source

    PropertyTypes

    Gets or sets a collection of property types for the group.

    Declaration
    [DataMember]
    public PropertyTypeCollection? PropertyTypes { get; set; }
    Property Value
    Type Description
    PropertyTypeCollection

    The property types.

    Remarks

    Marked with DoNotClone, because we will manually deal with cloning and the event handlers.

    View Source

    SortOrder

    Gets or sets the sort order of the group.

    Declaration
    [DataMember]
    public int SortOrder { get; set; }
    Property Value
    Type Description
    int

    The sort order.

    View Source

    Type

    Gets or sets the type of the group.

    Declaration
    [DataMember]
    public PropertyGroupType Type { get; set; }
    Property Value
    Type Description
    PropertyGroupType

    The type.

    Methods

    View Source

    Equals(PropertyGroup?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(PropertyGroup? other)
    Parameters
    Type Name Description
    PropertyGroup other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    View Source

    PerformDeepClone(object)

    Used by inheritors to modify the DeepCloning logic

    Declaration
    protected override void PerformDeepClone(object clone)
    Parameters
    Type Name Description
    object clone
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX