Class PropertyPageType

A property that specifies a page type.

Inheritance
System.Object
PropertyPageType
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[EditorHint("PageType")]
public class PropertyPageType : PropertyData, IReadOnly<PropertyData>, IReadOnly

Constructors

PropertyPageType()

Initializes a new instance of the PropertyPageType class.

Declaration
public PropertyPageType()

PropertyPageType(Int32)

Initializes a new instance of the PropertyPageType class.

Declaration
public PropertyPageType(int pageTypeID)
Parameters
Type Name Description
System.Int32 pageTypeID

The page type ID.

Properties

PageTypeID

Gets or sets the ID of the page type.

Declaration
public int PageTypeID { get; set; }
Property Value
Type Description
System.Int32

The ID of the page type.

PageTypeName

Gets or sets the name of the page type.

Declaration
public string PageTypeName { get; set; }
Property Value
Type Description
System.String

The name of the page type.

PropertyValueType

Gets the System.Type of the property value.

Declaration
public override Type PropertyValueType { get; }
Property Value
Type Description
System.Type

The System.Type of the property value.

Overrides

Type

Property type as defined by enum PropertyDataType.

Declaration
public override PropertyDataType Type { get; }
Property Value
Type Description
PropertyDataType

The type as defined by enum PropertyDataType.

Overrides

Value

Gets or sets the value of the property.

Declaration
public override object Value { get; set; }
Property Value
Type Description
System.Object

The value of the property.

Overrides
Remarks

Value returns null if the property has no value defined.

Methods

CreatePropertyControl()

Creates a PropertyPageTypeControl that is used to display a user interface for the property.

Declaration
public override IPropertyControl CreatePropertyControl()
Returns
Type Description
IPropertyControl

A PropertyPageTypeControl that is used to display a user interface for the property.

Overrides
Remarks

It is possible to change which control should be used by registering a different IPropertyControl for the PropertyData class in PropertyControlClassFactory.

Parse(String)

Creates a new instance of PropertyPageType with the specified value.

Declaration
public static PropertyPageType Parse(string value)
Parameters
Type Name Description
System.String value

The value.

Returns
Type Description
PropertyPageType

A new instance of PropertyPageType with the specified value.

ParseToObject(String)

Creates a new instance of PropertyPageType with the given value, ie reversed ToString().

Declaration
public override PropertyData ParseToObject(string value)
Parameters
Type Name Description
System.String value

The string value to parse.

Returns
Type Description
PropertyData

A new instance of PropertyPageType with the given value.

Overrides

ParseToSelf(String)

Sets the value of the property from a string representation.

Declaration
public override void ParseToSelf(string value)
Parameters
Type Name Description
System.String value

The string value to parse.

Overrides

SetDefaultValue()

Sets the default value for this property.

Declaration
protected override void SetDefaultValue()
Overrides

Implements

Extension Methods