TimelineCollection.CloneCurrentValue 方法


创建此 TimelineCollection 对象的可修改复本,从而深度复制此对象的当前值。Creates a modifiable clone of this TimelineCollection object, making deep copies of this object's current values. 不复制资源引用、数据绑定和动画,而是复制其当前值。Resource references, data bindings, and animations are not copied, but their current values are.

 System::Windows::Media::Animation::TimelineCollection ^ CloneCurrentValue();
public System.Windows.Media.Animation.TimelineCollection CloneCurrentValue ();
member this.CloneCurrentValue : unit -> System.Windows.Media.Animation.TimelineCollection
override this.CloneCurrentValue : unit -> System.Windows.Media.Animation.TimelineCollection
Public Function CloneCurrentValue () As TimelineCollection



当前对象的可修改复本。A modifiable clone of the current object. 即使源的 IsFrozen 属性为 true,所克隆的对象的 IsFrozen 属性也将为 falseThe cloned object's IsFrozen property will be false even if the source's IsFrozen property was true.


此方法用于生成冻结 Freezable 对象 (或任何对象) 的可修改副本 FreezableThis method is used to produce modifiable copies of frozen Freezable objects (or any Freezable object). 为方便起见,此方法使用强类型实现隐藏了继承的版本。For convenience, this method shadows the inherited version with a strongly typed implementation.

有关详细信息,请参阅 Freezable.CloneCurrentValueFor more information, see Freezable.CloneCurrentValue.