Skip to content

UnityWeld.Binding.Adapters

Rory Dungan edited this page Jun 1, 2018 · 1 revision

BoolInversionAdapter

Adapter that inverts the value of the bound boolean property.

public class UnityWeld.Binding.Adapters.BoolInversionAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

BoolToColorAdapter

Adapter for converting from a bool to a Unity color.

public class UnityWeld.Binding.Adapters.BoolToColorAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

BoolToColorAdapterOptions

Options for converting from a bool to a Unity color.

public class UnityWeld.Binding.Adapters.BoolToColorAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
Color FalseColor The value used when the bool is false.
Color TrueColor The value used when the bool is true.

BoolToColorBlockAdapter

Adapter for converting from a bool to a Unity color.

public class UnityWeld.Binding.Adapters.BoolToColorBlockAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

BoolToColorBlockAdapterOptions

Options for converting from a bool to a Unity color.

public class UnityWeld.Binding.Adapters.BoolToColorBlockAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
ColorBlock FalseColors The value used when the bool is false.
ColorBlock TrueColors The value used when the bool is true.

BoolToStringAdapter

Adapter for converting from a bool to a string.

public class UnityWeld.Binding.Adapters.BoolToStringAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

BoolToStringAdapterOptions

Options for converting from a bool to a string.

public class UnityWeld.Binding.Adapters.BoolToStringAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
String FalseValueString The value used when the bool is set to false.
String TrueValueString The value used when the bool is set to true.

ColorToColorBlockAdapter

Adapter that converts a single Color to one of the colors inside a ColorBlock

public class UnityWeld.Binding.Adapters.ColorToColorBlockAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

ColorToColorBlockAdapterOptions

Adapter that converts a single Color to one of the colors inside a ColorBlock

public class UnityWeld.Binding.Adapters.ColorToColorBlockAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
ColorBlock DefaultColors Default colors for the other roles.
Role OverrideColor Which color to override.

DateTimeToFloatAdapter

Adapter for converting from a DateTime to an OADate as a float.

public class UnityWeld.Binding.Adapters.DateTimeToFloatAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

DateTimeToStringAdapter

Adapter for converting from a DateTime to a string.

public class UnityWeld.Binding.Adapters.DateTimeToStringAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

DateTimeToStringAdapterOptions

Options for converting a DateTime to a string.

public class UnityWeld.Binding.Adapters.DateTimeToStringAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
String Format Format passed in to the DateTime.ToString method. See this page for details on usage: https://msdn.microsoft.com/en-us/library/zdtaw1bw(v=vs.110).aspx

FloatToDateTimeAdapter

Adapter for converting from a float as an OADate to a DateTime.

public class UnityWeld.Binding.Adapters.FloatToDateTimeAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

FloatToStringAdapter

Adapter that converts a float to a string.

public class UnityWeld.Binding.Adapters.FloatToStringAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

FloatToStringAdapterOptions

Options for the float to string adapter.

public class UnityWeld.Binding.Adapters.FloatToStringAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
String Format Options passed in to the Single.ToString() method. Defaults to two decimal places. See this page for more details: https://msdn.microsoft.com/en-us/library/f71z6k0c(v=vs.110).aspx

IntToStringAdapter

Adapter for converting from an int to a string.

public class UnityWeld.Binding.Adapters.IntToStringAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

StringCultureToDateTimeAdapter

Adapter for converting from a string to a DateTime, using a specified culture.

public class UnityWeld.Binding.Adapters.StringCultureToDateTimeAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

StringCultureToDateTimeAdapterOptions

Options for converting from a string to a DateTime using format from a specified culture.

public class UnityWeld.Binding.Adapters.StringCultureToDateTimeAdapterOptions
    : AdapterOptions

Fields

Type Name Summary
String CultureName

StringEmptyToBoolAdapter

String to bool adapter that returns false if the string is null or empty, otherwise true.

public class UnityWeld.Binding.Adapters.StringEmptyToBoolAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

StringToFloatAdapter

Adapter that parses a string as a float.

public class UnityWeld.Binding.Adapters.StringToFloatAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)

StringToIntAdapter

Adapter for converting from a string to an int.

public class UnityWeld.Binding.Adapters.StringToIntAdapter
    : IAdapter

Methods

Type Name Summary
Object Convert(Object valueIn, AdapterOptions options)