[]
Converts a nullable value to an index.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
| Type | Name | Description |
|---|---|---|
| object | value | The value produced by the binding source. |
| Type | targetType | The type of the binding target property. |
| object | parameter | The converter parameter to use. |
| CultureInfo | culture | The culture to use in the converter. |
| Type | Description |
|---|---|
| object | An index value. Returns -1 if the value is null. |