KeyTime.FromPercent(Double) Metod

Definition

Skapar en ny KeyTime instans med egenskapen KeyTimeType initierad till värdet för den angivna parametern.

public:
 static System::Windows::Media::Animation::KeyTime FromPercent(double percent);
public static System.Windows.Media.Animation.KeyTime FromPercent(double percent);
static member FromPercent : double -> System.Windows.Media.Animation.KeyTime
Public Shared Function FromPercent (percent As Double) As KeyTime

Parametrar

percent
Double

Värdet för den nya KeyTime.

Returer

En ny KeyTime instans, initierad till värdet percentför .

Undantag

percent är mindre än 0,0 eller större än 1,0.

Kommentarer

Procentparametern skickas som en dubbel, mellan värdena 0,0 och 1,0.

Gäller för