Class UiOptionFloatValue
Represents a float value for a UI option.
Implements
Inherited Members
Namespace: Serenity.Ui.Domain.Entities
Assembly: Serenity.Ui.Domain.dll
Syntax
public class UiOptionFloatValue : UiOptionValue, IFoundationSettings
Constructors
UiOptionFloatValue(string, string, float, UiComponentInteractionType)
Initializes a new instance of the UiOptionFloatValue class.
Declaration
public UiOptionFloatValue(string id, string menuId, float value, UiComponentInteractionType uiElement)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier of the option. |
| string | menuId | The view identifier of the option. |
| float | value | The float value of the option. |
| UiComponentInteractionType | uiElement | The interaction type of the UI element. |
UiOptionFloatValue(string, string, string, UiComponentInteractionType)
Initializes a new instance of the UiOptionFloatValue class from a string representation of the float value.
Declaration
public UiOptionFloatValue(string id, string menuId, string value, UiComponentInteractionType uiElement)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier of the option. |
| string | menuId | The view identifier of the option. |
| string | value | The string representation of the float value of the option. |
| UiComponentInteractionType | uiElement | The interaction type of the UI element. |
Fields
Value
Declaration
public float Value
Field Value
| Type | Description |
|---|---|
| float | The float value of the option. |
Methods
GetStringValue()
Gets the string representation of the float value.
Declaration
public string GetStringValue()
Returns
| Type | Description |
|---|---|
| string | The string representation of the float value. |
SetValue(string)
Sets the float value from a string representation.
Declaration
public override void SetValue(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string representation of the float value. |
Overrides
ToString()
Gets the string representation of the UI option value.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation of the UI option value. |