Timeline.SetDesiredFrameRate(Timeline, Nullable<Int32>) 方法

定義

設定指定之 Timeline 的理想畫面播放速率。

public:
 static void SetDesiredFrameRate(System::Windows::Media::Animation::Timeline ^ timeline, Nullable<int> desiredFrameRate);
public static void SetDesiredFrameRate (System.Windows.Media.Animation.Timeline timeline, int? desiredFrameRate);
static member SetDesiredFrameRate : System.Windows.Media.Animation.Timeline * Nullable<int> -> unit
Public Shared Sub SetDesiredFrameRate (timeline As Timeline, desiredFrameRate As Nullable(Of Integer))

參數

timeline
Timeline

指派 desiredFrameRate 至其中的 Timeline

desiredFrameRate
Nullable<Int32>

這個時刻表每秒應產生的每秒最大畫面格數目,如果系統應控制畫面格數目則為 null

備註

這個方法會設定 DesiredFrameRate 附加屬性。 如需詳細資訊,請參閱 DesiredFrameRate 頁面。

適用於

另請參閱