Storyboard.GetTargetProperty(DependencyObject) 方法

定義

擷取所指定 TargetPropertyTimeline 值。

public:
 static System::Windows::PropertyPath ^ GetTargetProperty(System::Windows::DependencyObject ^ element);
public static System.Windows.PropertyPath GetTargetProperty (System.Windows.DependencyObject element);
static member GetTargetProperty : System.Windows.DependencyObject -> System.Windows.PropertyPath
Public Shared Function GetTargetProperty (element As DependencyObject) As PropertyPath

參數

element
DependencyObject

要從中取得 TargetProperty 的相依性物件。

傳回

PropertyPath

element 設為目標的屬性。

備註

這個方法會 TargetProperty 取得指定物件上的附加屬性。 如需分鏡腳本目標運作方式的詳細資訊,請參閱 TargetProperty 附加屬性。 如需附加屬性運作方式的詳細資訊,請參閱 附加屬性概觀

TargetProperty如果在標記中設定 ,則這個方法會傳回空白 PropertyPath ,因為屬性參考會在剖析時解析並儲存在內部。

適用於

另請參閱