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