Clock.CurrentTime 属性

定义

获取此时钟的当前时间在其当前迭代中。

public:
 property Nullable<TimeSpan> CurrentTime { Nullable<TimeSpan> get(); };
public TimeSpan? CurrentTime { get; }
member this.CurrentTime : Nullable<TimeSpan>
Public ReadOnly Property CurrentTime As Nullable(Of TimeSpan)

属性值

null 如果此时钟为 Stopped;否则为此时钟的当前时间。

注解

将时间线用作计时器

仅当有与它关联的事件处理程序或(在对象的情况下)它与属性关联时,时间线的 AnimationClock 时钟才会进行。 出于此原因(和其他原因),不建议使用 Timeline 计时器。

适用于

另请参阅