Storyboard.GetCurrentState 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取CurrentStateClock出為此Storyboard而創建的 。
多載
| 名稱 | Description |
|---|---|
| GetCurrentState(FrameworkElement) |
取CurrentStateClock出為此Storyboard而創建的 。 |
| GetCurrentState(FrameworkContentElement) |
取CurrentStateClock出為此Storyboard而創建的 。 |
| GetCurrentState() |
取CurrentStateClock出為此Storyboard而創建的 。 |
GetCurrentState(FrameworkElement)
取CurrentStateClock出為此Storyboard而創建的 。
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 為本故事板及其子節點所創建的物件。
傳回
為此分鏡所建立的時鐘目前狀態為: Active、、 Filling或 Stopped。
備註
此方法不會告訴你故事板是否被暫停。 要判斷故事板是否暫停,請使用以下 GetIsPaused 方法。
要使用此方法取得分鏡時鐘的資訊,分鏡必須是可控的。 要讓分鏡在程式碼中可控,必須使用故事板 Begin 方法的適當超載,並指定 true 使其可控。 舉例請參見 《如何:在故事板開始後控制》。
適用於
GetCurrentState(FrameworkContentElement)
取CurrentStateClock出為此Storyboard而創建的 。
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 為本故事板及其子節點所創建的物件。
傳回
為此分鏡所建立的時鐘目前狀態為: Active、、 Filling或 Stopped。
備註
此方法不會告訴你故事板是否被暫停。 要判斷故事板是否暫停,請使用以下 GetIsPaused 方法。
要使用此方法取得分鏡時鐘的資訊,分鏡必須是可控的。 要讓分鏡在程式碼中可控,必須使用故事板 Begin 方法的適當超載,並指定 true 使其可控。 舉例請參見 《如何:在故事板開始後控制》。
適用於
GetCurrentState()
取CurrentStateClock出為此Storyboard而創建的 。
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
傳回
為此分鏡所建立的時鐘目前狀態為: Active、、 Filling或 Stopped。
備註
此方法不會告訴你故事板是否被暫停。 要判斷故事板是否暫停,請使用以下 GetIsPaused 方法。
要使用此方法取得分鏡時鐘的資訊,分鏡必須是可控的。 要讓分鏡在程式碼中可控,必須使用故事板 Begin 方法的適當超載,並指定 true 使其可控。 舉例請參見 《如何:在故事板開始後控制》。