AlternationConverter.Convert(Object, Type, Object, CultureInfo) Method

Definition

Converts an integer to an object in the Values list.

C#
public object Convert(object o, Type targetType, object parameter, System.Globalization.CultureInfo culture);

Parameters

o
Object

The integer to use to find an object in the Values property.

targetType
Type

The type of the binding target property.

parameter
Object

The converter parameter to use.

culture
CultureInfo

The culture to use in the converter.

Returns

The object that is in the position of o modulo the number of items in Values.

Implements

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10