logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiOptionValueFactory

    Factory class for creating various types of UiOptionValue instances.

    Inheritance
    object
    UiOptionValueFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Domain.Services
    Assembly: Serenity.Ui.Domain.dll
    Syntax
    public class UiOptionValueFactory

    Constructors

    UiOptionValueFactory()

    Declaration
    public UiOptionValueFactory()

    Methods

    CreateUiOptionBoolValue(string, string, string, UiComponentInteractionType)

    Creates a new instance of UiOptionBoolValue.

    Declaration
    public UiOptionValue CreateUiOptionBoolValue(string id, string menuId, string value, UiComponentInteractionType valueUiElement)
    Parameters
    Type Name Description
    string id

    The unique identifier for the option value.

    string menuId

    The identifier of the menu this option belongs to.

    string value

    The string representation of the boolean value.

    UiComponentInteractionType valueUiElement

    The type of UI component interaction for this option.

    Returns
    Type Description
    UiOptionValue

    A new instance of UiOptionBoolValue.

    CreateUiOptionFloatValue(string, string, string, UiComponentInteractionType)

    Creates a new instance of UiOptionFloatValue.

    Declaration
    public UiOptionValue CreateUiOptionFloatValue(string id, string menuId, string value, UiComponentInteractionType valueUiElement)
    Parameters
    Type Name Description
    string id

    The unique identifier for the option value.

    string menuId

    The identifier of the menu this option belongs to.

    string value

    The string representation of the float value.

    UiComponentInteractionType valueUiElement

    The type of UI component interaction for this option.

    Returns
    Type Description
    UiOptionValue

    A new instance of UiOptionFloatValue.

    CreateUiOptionIntegerValue(string, string, string, UiComponentInteractionType)

    Creates a new instance of UiOptionIntegerValue.

    Declaration
    public UiOptionValue CreateUiOptionIntegerValue(string id, string menuId, string value, UiComponentInteractionType valueUiElement)
    Parameters
    Type Name Description
    string id

    The unique identifier for the option value.

    string menuId

    The identifier of the menu this option belongs to.

    string value

    The string representation of the integer value.

    UiComponentInteractionType valueUiElement

    The type of UI component interaction for this option.

    Returns
    Type Description
    UiOptionValue

    A new instance of UiOptionIntegerValue.

    CreateUiOptionSelectableValue(string, string, string, UiComponentInteractionType, ConfigurationEntry[])

    Creates a new instance of UiOptionSelectableValue.

    Declaration
    public UiOptionValue CreateUiOptionSelectableValue(string id, string menuId, string value, UiComponentInteractionType valueUiElement, ConfigurationEntry[] selectableValues = null)
    Parameters
    Type Name Description
    string id

    The unique identifier for the option value.

    string menuId

    The identifier of the menu this option belongs to.

    string value

    The string representation of the selected value.

    UiComponentInteractionType valueUiElement

    The type of UI component interaction for this option.

    ConfigurationEntry[] selectableValues

    An array of key-value pairs representing the selectable options.

    Returns
    Type Description
    UiOptionValue

    A new instance of UiOptionSelectableValue.

    CreateUiOptionStringValue(string, string, string, UiComponentInteractionType, int)

    Creates a new instance of UiOptionStringValue.

    Declaration
    public UiOptionValue CreateUiOptionStringValue(string id, string menuId, string value, UiComponentInteractionType valueUiElement, int characterLimit)
    Parameters
    Type Name Description
    string id

    The unique identifier for the option value.

    string menuId

    The identifier of the menu this option belongs to.

    string value

    The string value.

    UiComponentInteractionType valueUiElement

    The type of UI component interaction for this option.

    int characterLimit

    The maximum number of characters allowed for the string value.

    Returns
    Type Description
    UiOptionValue

    A new instance of UiOptionStringValue.

    In this article
    © 2026 Serenity. All Rights Reserved