logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiOptionFloatValue

    Represents a float value for a UI option.

    Inheritance
    object
    UiOptionValue
    UiOptionFloatValue
    Implements
    IFoundationSettings
    Inherited Members
    UiOptionValue.UiElement
    UiOptionValue.Id
    UiOptionValue.Guid
    UiOptionValue.ViewId
    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 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
    UiOptionValue.SetValue(string)

    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.

    Overrides
    UiOptionValue.ToString()

    Implements

    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved