logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiOptionBoolValue

    Represents a boolean value for a UI option.

    Inheritance
    object
    UiOptionValue
    UiOptionBoolValue
    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 UiOptionBoolValue : UiOptionValue, IFoundationSettings

    Constructors

    UiOptionBoolValue(string, string, bool, UiComponentInteractionType)

    Initializes a new instance of the UiOptionBoolValue class.

    Declaration
    public UiOptionBoolValue(string id, string menuId, bool value, UiComponentInteractionType uiElement)
    Parameters
    Type Name Description
    string id

    The unique identifier of the option.

    string menuId

    The view identifier of the option.

    bool value

    The boolean value of the option.

    UiComponentInteractionType uiElement

    The interaction type of the UI element.

    UiOptionBoolValue(string, string, string, UiComponentInteractionType)

    Initializes a new instance of the UiOptionBoolValue class from a string representation of the boolean value.

    Declaration
    public UiOptionBoolValue(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 boolean value of the option.

    UiComponentInteractionType uiElement

    The interaction type of the UI element.

    Fields

    Value

    Declaration
    public bool Value
    Field Value
    Type Description
    bool

    The boolean value of the option.

    Methods

    GetStringValue()

    Gets the string representation of the boolean value.

    Declaration
    public string GetStringValue()
    Returns
    Type Description
    string

    The string representation of the boolean value.

    SetValue(string)

    Sets the boolean value from a string representation.

    Declaration
    public override void SetValue(string value)
    Parameters
    Type Name Description
    string value

    The string representation of the boolean 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