DoubleOption
Less than 1 minute
DoubleOption
Represents a custom double option for a plugin config.
- Type: Class
- Namespace: Melora.Plugins.Models
- Implements: ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
public class DoubleOption : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
Constructors
Creates a new DoubleOption.
public DoubleOption(
string name,
string description,
double value,
double minimum,
double maximum)
Parameter | Summary |
---|---|
string name | The name of the option. |
string description | The description of the option. |
double value | The value of the option. |
double minimum | The minimum the value needs to be |
double maximum | The maximum the value can be. |
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
Minimum
The minimum the value needs to be.
- Type: System.Double
- Is Read Only:
True
Maximum
The maximum the value can be.
- Type: System.Double
- Is Read Only:
True
Value
The value of the option.
- Type: System.Double
- Is Read Only:
False