Class PropertyNumber
Property representing a numeric value.
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PropertyNumber : PropertyData, IReadOnly<PropertyData>, IReadOnly
Constructors
PropertyNumber()
Initializes a new instance of the Property
Declaration
public PropertyNumber()
PropertyNumber(Int32)
Initializes a new instance of the Property
Declaration
public PropertyNumber(int numberValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
numberValue | The number value. |
Properties
Number
Gets or sets the value of the property as an System.
Declaration
public Nullable<int> Number { get; set; }
Property Value
Type | Description |
---|---|
System. |
The value of the property as an System. |
PropertyValueType
Gets the System.
Declaration
public override Type PropertyValueType { get; }
Property Value
Type | Description |
---|---|
System. |
The type of the property value. |
Overrides
Type
Gets the property type as defined by enum Property
Declaration
public override PropertyDataType Type { get; }
Property Value
Type | Description |
---|---|
Property |
The PropertyDataType as defined by enum Property |
Overrides
Value
Gets or sets the value of the property.
Declaration
public override object Value { get; set; }
Property Value
Type | Description |
---|---|
System. |
The value of the property. |
Overrides
Remarks
Value returns null if the property has no value defined.
Methods
Parse(String)
Parses the specified string.
Declaration
public static PropertyNumber Parse(string str)
Parameters
Type | Name | Description |
---|---|---|
System. |
str | The string to parse. |
Returns
Type | Description |
---|---|
Property |
A new instance of Property |
ParseToSelf(String)
Sets the value of the property from a string representation.
Declaration
public override void ParseToSelf(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string value to parse. |
Overrides
SetDefaultValue()
Sets the default value for this property.
Declaration
protected override void SetDefaultValue()