Class PropertyGroup
Represents a group of property types.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class PropertyGroup : EntityBase, IRememberBeingDirty, ICanBeDirty, IEntity, IDeepCloneable
Constructors
View SourcePropertyGroup(bool)
Initializes a new instance of the PropertyGroup class.
Declaration
public PropertyGroup(bool isPublishing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isPublishing | A value indicating whether the property types support publishing. |
PropertyGroup(PropertyTypeCollection)
Initializes a new instance of the PropertyGroup class with a property type collection.
Declaration
public PropertyGroup(PropertyTypeCollection propertyTypeCollection)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyTypeCollection | propertyTypeCollection | The collection of property types for this group. |
Properties
View SourceAlias
Gets or sets the alias of the group.
Declaration
[DataMember]
public string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The alias. |
Name
Gets or sets the name of the group.
Declaration
[DataMember]
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The name. |
PropertyTypes
Gets or sets a collection of property types for the group.
Declaration
[DataMember]
[DoNotClone]
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.
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. |
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 SourceEquals(PropertyGroup?)
Declaration
public bool Equals(PropertyGroup? other)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyGroup | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
PerformDeepClone(object)
Used by inheritors to modify the DeepCloning logic
Declaration
protected override void PerformDeepClone(object clone)
Parameters
| Type | Name | Description |
|---|---|---|
| object | clone |