logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiOptionIntegerValue

    Represents an integer value for a UI option.

    Inheritance
    object
    UiOptionValue
    UiOptionIntegerValue
    Implements
    IFoundationSettings
    Inherited Members
    UiOptionValue.UiElement
    UiOptionValue.Id
    UiOptionValue.Guid
    UiOptionValue.ViewId
    UiOptionValue.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    Overrides
    UiOptionValue.SetValue(string)

    Implements

    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved