BoolOption
Less than 1 minute
BoolOption
Represents a custom bool option for a plugin config.
- Type: Class
- Namespace: Melora.Plugins.Models
- Implements: ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
public class BoolOption : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
Constructors
Creates a new BoolOption.
public BoolOption(
string name,
string description,
bool value)
Parameter | Summary |
---|---|
string name | The name of the option. |
string description | The description of the option. |
bool value | The value of the option. |
Methods
Copy
Creates a new object that is a copy of the current instance with the new value.
public IOption Copy(
object value)
Parameter | Summary |
---|---|
object value | The new value of the copy. |
Properties
Name
The name of the option.
- Type: System.String
- Is Read Only:
True
Description
The description of the option.
- Type: System.String
- Is Read Only:
True
Value
The value of the option.
- Type: System.Boolean
- Is Read Only:
False