KeyTime.FromTimeSpan(TimeSpan) 方法

定義

建立新的 KeyTime 執行個體,其KeyTimeType 屬性初始化為指定的參數值。

public:
 static System::Windows::Media::Animation::KeyTime FromTimeSpan(TimeSpan timeSpan);
public static System.Windows.Media.Animation.KeyTime FromTimeSpan (TimeSpan timeSpan);
static member FromTimeSpan : TimeSpan -> System.Windows.Media.Animation.KeyTime
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As KeyTime

參數

timeSpan
TimeSpan

KeyTime 的值。

傳回

KeyTime 執行個體,初始化為 timeSpan 的值。

適用於