StringOption
Less than 1 minute
StringOption
Represents a custom string option for a plugin config.
- Type: Class
- Namespace: Melora.Plugins.Models
- Implements: ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
public class StringOption : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IOption
Constructors
Creates a new StringOption.
public StringOption(
string name,
string description,
string value,
int maxLength,
bool isObscured)
Parameter | Summary |
---|---|
string name | The name of the option. |
string description | The description of the option. |
string value | The value of the option. |
int maxLength | The max length of the value |
bool isObscured | Whether the value should be obscured in the UI. |
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
MaxLength
The max length of the value.
- Type: System.Int32
- Is Read Only:
True
IsObscured
Whether the value should be obscured in the UI.
- Type: System.Boolean
- Is Read Only:
True
Value
The value of the option.
- Type: System.String
- Is Read Only:
False