共用方式為


NumericExtensions.Clamp 方法

定義

多載

Clamp(Double, Double, Double)

供 Xamarin.Forms 平台內部使用。

Clamp(Int32, Int32, Int32)

供 Xamarin.Forms 平台內部使用。

Clamp(Double, Double, Double)

供 Xamarin.Forms 平台內部使用。

public static double Clamp(this double self, double min, double max);
static member Clamp : double * double * double -> double

參數

self
System.Double

供 Xamarin.Forms 平台內部使用。

min
System.Double

供 Xamarin.Forms 平台內部使用。

max
System.Double

供 Xamarin.Forms 平台內部使用。

傳回

System.Double

供 Xamarin.Forms 平台內部使用。

適用於

Clamp(Int32, Int32, Int32)

供 Xamarin.Forms 平台內部使用。

public static int Clamp(this int self, int min, int max);
static member Clamp : int * int * int -> int

參數

self
System.Int32

供 Xamarin.Forms 平台內部使用。

min
System.Int32

供 Xamarin.Forms 平台內部使用。

max
System.Int32

供 Xamarin.Forms 平台內部使用。

傳回

System.Int32

供 Xamarin.Forms 平台內部使用。

適用於