Class PropertyFloatNumber
A property representing a floating point numeric value.
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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 Nullable<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
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
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. |