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