Class PropertyFloatNumber
A property representing a floating point numeric value.
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PropertyFloatNumber : PropertyData, IReadOnly<PropertyData>, IReadOnly
Constructors
PropertyFloatNumber()
Initializes a new instance of the Property
Declaration
public PropertyFloatNumber()
PropertyFloatNumber(Double)
Initializes a new instance of the Property
Declaration
public PropertyFloatNumber(double numberValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
numberValue | The number value. |
Properties
FloatNumber
Get or sets the value of the property typed as a System.
Declaration
public double FloatNumber { get; set; }
Property Value
Type | Description |
---|---|
System. |
The value of the property typed as a System. |
PropertyValueType
Gets the System.
Declaration
public override Type PropertyValueType { get; }
Property Value
Type | Description |
---|---|
System. |
The System. |
Overrides
Type
Get the data type for this property.
Declaration
public override PropertyDataType Type { get; }
Property Value
Type | Description |
---|---|
Property |
Returns Float |
Overrides
Remarks
The recommended practice is to use typeof() constructs instead of relying on this property.
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
CreatePropertyControl()
Creates a Property
Declaration
public override IPropertyControl CreatePropertyControl()
Returns
Type | Description |
---|---|
IProperty |
A Property |
Overrides
Remarks
It is possible to change which control should be used by registering a different IProperty
Parse(String)
Create a new instance of Property
Declaration
public static PropertyFloatNumber Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string to create a Property |
Returns
Type | Description |
---|---|
Property |
A new instance of Property |
Remarks
If the string is null or Empty an empty Property
ParseToObject(String)
A wrapper for Parse(String) to return a generic PropertyData object.
Declaration
public override PropertyData ParseToObject(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value for the new Property |
Returns
Type | Description |
---|---|
Property |
A new instance of Property |
Overrides
Remarks
If the string is null or Empty an empty Property
ParseToSelf(String)
Replace the internal floating point number with the parsed value.
Declaration
public override void ParseToSelf(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string to parse into this object. |
Overrides
SetDefaultValue()
Sets the default value for this property.
Declaration
protected override void SetDefaultValue()
Overrides
ToString()
Get the property's display string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |