SelectableOption
Less than 1 minute
SelectableOption
Represents a custom selectable option for a plugin config.
- Type: Class
- Namespace: Melora.Plugins.Models
- Implements: ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
public class SelectableOption : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
Constructors
Creates a new SelectableOption.
public SelectableOption(
string name,
string description,
string value,
String[] items)
Parameter | Summary |
---|---|
string name | The name of the option. |
string description | The description of the option. |
string value | The value of the option. |
String[] items | The items from which can be selected. |
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
Items
The items from which can be selected.
- Type: System.String[]
- Is Read Only:
True
Value
The value of the option.
- Type: System.String
- Is Read Only:
False