Class PropertyGroup
Represents a group of property types.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class PropertyGroup : EntityBase, IRememberBeingDirty, ICanBeDirty, IEntity, IDeepCloneable
Constructors
View SourcePropertyGroup(bool)
Declaration
public PropertyGroup(bool isPublishing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isPublishing |
PropertyGroup(PropertyTypeCollection)
Declaration
public PropertyGroup(PropertyTypeCollection propertyTypeCollection)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyTypeCollection | propertyTypeCollection |
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]
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?)
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 |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
PerformDeepClone(object)
Used by inheritors to modify the DeepCloning logic
Declaration
protected override void PerformDeepClone(object clone)
Parameters
| Type | Name | Description |
|---|---|---|
| object | clone |