Class PropertyGroup
Represents a group of property types.
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class PropertyGroup : EntityBase, IRememberBeingDirty, ICanBeDirty, IEntity, IDeepCloneable, IEquatable<PropertyGroup>
Constructors
View SourcePropertyGroup(Boolean)
Declaration
public PropertyGroup(bool isPublishing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | 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 |
---|---|
System.String | The alias. |
Name
Gets or sets the name of the group.
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 | 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 |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
PerformDeepClone(Object)
Declaration
protected override void PerformDeepClone(object clone)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clone |