Class HexColorConverter
A converter for
Implements
Inherited Members
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public sealed class HexColorConverter : ValueConverter<Color>, IValueConverter
Methods
| Improve this Doc View SourceFromValue(Value, Object)
Declaration
public override Color FromValue(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | the Value to convert |
Object | parent | the object which will own the created object |
Returns
Type | Description |
---|---|
Color | the deserialized Color object |
Overrides
IPA.Config.Stores.ValueConverter<Color>.FromValue(IPA.Config.Data.Value, System.Object)
Exceptions
Type | Condition |
---|---|
ArgumentException | if |
ToValue(Color, Object)
Converts color of type
Declaration
public override Value ToValue(Color obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
Color | obj | the object to serialize |
Object | parent | the object which owns |
Returns
Type | Description |
---|---|
Value | a Text node representing |
Overrides
IPA.Config.Stores.ValueConverter<Color>.ToValue(Color, System.Object)