Share via


DoubleToIntConverter Class

Definition

Converts System.Double to System.Int32 and vice versa.

[Xamarin.Forms.ContentProperty("Ratio")]
public class DoubleToIntConverter : Xamarin.CommunityToolkit.Extensions.Internals.ValueConverterExtension, Xamarin.Forms.IValueConverter
Inheritance
System.Object
DoubleToIntConverter
Attributes
Implements

Constructors

DoubleToIntConverter()

Properties

Ratio

Multiplier / Denominator (Equals 1 by default).

Methods

Convert(Object, Type, Object, CultureInfo)

Converts System.Double to System.Int32.

ConvertBack(Object, Type, Object, CultureInfo)

Converts back System.Int32 to System.Double.

ProvideValue(IServiceProvider) (Inherited from ValueConverterExtension)

Explicit Interface Implementations

IMarkupExtension.ProvideValue(IServiceProvider) (Inherited from ValueConverterExtension)

Applies to