Storyboard.GetCurrentGlobalSpeed 方法

定義

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

多載

GetCurrentGlobalSpeed(FrameworkElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

GetCurrentGlobalSpeed(FrameworkContentElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

GetCurrentGlobalSpeed()

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

備註

時鐘 CurrentGlobalSpeed 的速度是其時間目前進行的速度,相較于真實世界時間。

若要使用這個方法來擷取分鏡腳本時鐘的相關資訊,腳本必須可控制。 若要在程式碼中控制分鏡 Begin 腳本,您必須使用腳本方法的適當多載,並指定 true 以使其可控制。 如需範例,請參閱 如何:在腳本啟動之後控制分鏡腳本

GetCurrentGlobalSpeed(FrameworkElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

public:
 Nullable<double> GetCurrentGlobalSpeed(System::Windows::FrameworkElement ^ containingObject);
public double? GetCurrentGlobalSpeed (System.Windows.FrameworkElement containingObject);
member this.GetCurrentGlobalSpeed : System.Windows.FrameworkElement -> Nullable<double>
Public Function GetCurrentGlobalSpeed (containingObject As FrameworkElement) As Nullable(Of Double)

參數

containingObject
FrameworkElement

呼叫 Begin(FrameworkElement, Boolean) 方法時指定的物件。 此物件包含為這個腳本和其子系所建立的 Clock 物件。

傳回

目前的整體速度,如果時鐘停止,則為 null

備註

時鐘 CurrentGlobalSpeed 的速度是其時間目前進行的速度,相較于真實世界時間。

若要使用這個方法來擷取分鏡腳本時鐘的相關資訊,腳本必須可控制。 若要在程式碼中控制分鏡 Begin 腳本,您必須使用腳本方法的適當多載,並指定 true 以使其可控制。 如需範例,請參閱 如何:在腳本啟動之後控制分鏡腳本

另請參閱

適用於

GetCurrentGlobalSpeed(FrameworkContentElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

public:
 Nullable<double> GetCurrentGlobalSpeed(System::Windows::FrameworkContentElement ^ containingObject);
public double? GetCurrentGlobalSpeed (System.Windows.FrameworkContentElement containingObject);
member this.GetCurrentGlobalSpeed : System.Windows.FrameworkContentElement -> Nullable<double>
Public Function GetCurrentGlobalSpeed (containingObject As FrameworkContentElement) As Nullable(Of Double)

參數

containingObject
FrameworkContentElement

呼叫 Begin(FrameworkContentElement, Boolean) 方法時指定的物件。 此物件包含為這個腳本和其子系所建立的 Clock 物件。

傳回

目前的整體速度,如果時鐘停止,則為 null

備註

時鐘 CurrentGlobalSpeed 的速度是其時間目前進行的速度,相較于真實世界時間。

若要使用這個方法來擷取分鏡腳本時鐘的相關資訊,腳本必須可控制。 若要在程式碼中控制分鏡 Begin 腳本,您必須使用腳本方法的適當多載,並指定 true 以使其可控制。 如需範例,請參閱 如何:在腳本啟動之後控制分鏡腳本

另請參閱

適用於

GetCurrentGlobalSpeed()

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboard

public:
 double GetCurrentGlobalSpeed();
public double GetCurrentGlobalSpeed ();
member this.GetCurrentGlobalSpeed : unit -> double
Public Function GetCurrentGlobalSpeed () As Double

傳回

目前的整體速度,如果時鐘停止,則為 0。

適用於