Storyboard.GetCurrentState 方法

定義

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

多載

GetCurrentState(FrameworkElement)

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

GetCurrentState(FrameworkContentElement)

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

GetCurrentState()

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

GetCurrentState(FrameworkElement)

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

public:
 System::Windows::Media::Animation::ClockState GetCurrentState(System::Windows::FrameworkElement ^ containingObject);
public System.Windows.Media.Animation.ClockState GetCurrentState (System.Windows.FrameworkElement containingObject);
member this.GetCurrentState : System.Windows.FrameworkElement -> System.Windows.Media.Animation.ClockState
Public Function GetCurrentState (containingObject As FrameworkElement) As ClockState

參數

containingObject
FrameworkElement

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

傳回

ClockState

為這個腳本建立之時鐘的目前狀態:ActiveFillingStopped

備註

這個方法不會告訴您腳本是否已暫停。 若要判斷腳本是否暫停,請使用 GetIsPaused 方法。

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

適用於

GetCurrentState(FrameworkContentElement)

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

public:
 System::Windows::Media::Animation::ClockState GetCurrentState(System::Windows::FrameworkContentElement ^ containingObject);
public System.Windows.Media.Animation.ClockState GetCurrentState (System.Windows.FrameworkContentElement containingObject);
member this.GetCurrentState : System.Windows.FrameworkContentElement -> System.Windows.Media.Animation.ClockState
Public Function GetCurrentState (containingObject As FrameworkContentElement) As ClockState

參數

containingObject
FrameworkContentElement

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

傳回

ClockState

為這個腳本建立之時鐘的目前狀態:ActiveFillingStopped

備註

這個方法不會告訴您腳本是否已暫停。 若要判斷腳本是否暫停,請使用 GetIsPaused 方法。

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

適用於

GetCurrentState()

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

public:
 System::Windows::Media::Animation::ClockState GetCurrentState();
public System.Windows.Media.Animation.ClockState GetCurrentState ();
member this.GetCurrentState : unit -> System.Windows.Media.Animation.ClockState
Public Function GetCurrentState () As ClockState

傳回

ClockState

為這個腳本建立之時鐘的目前狀態:ActiveFillingStopped

備註

這個方法不會告訴您腳本是否已暫停。 若要判斷腳本是否暫停,請使用 GetIsPaused 方法。

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

適用於