共用方式為


Storyboard.SetTarget(Timeline, DependencyObject) 方法

定義

使指定的 時間軸 以指定的物件為目標。

public:
 static void SetTarget(Timeline ^ timeline, DependencyObject ^ target);
 static void SetTarget(Timeline const& timeline, DependencyObject const& target);
public static void SetTarget(Timeline timeline, DependencyObject target);
function setTarget(timeline, target)
Public Shared Sub SetTarget (timeline As Timeline, target As DependencyObject)

參數

timeline
Timeline

以指定相依性物件為目標的時程表。

target
DependencyObject

要設為目標之物件的實際實例。

適用於