Animatable.Clone 方法


创建此 Animatable 的可修改克隆,从而深度复制此对象的值。Creates a modifiable clone of this Animatable, making deep copies of this object's values. 在复制此对象的依赖项属性时,此方法会复制资源引用和数据绑定(但它们可能不再解析),但不复制动画或其当前值。When copying this object's dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

 System::Windows::Media::Animation::Animatable ^ Clone();
public System.Windows.Media.Animation.Animatable Clone ();
override this.Clone : unit -> System.Windows.Media.Animation.Animatable
Public Function Clone () As Animatable


此实例的可修改复本。A modifiable clone of this instance. 返回的复本实际上是当前对象的深层副本。The returned clone is effectively a deep copy of the current object. 该复本的 IsFrozen 属性为 falseThe clone's IsFrozen property is false.


方法可用于生成冻结Freezable对象的可修改副本。 CloneThe Clone method can be used to produce modifiable copies of frozen Freezable objects. 为方便起见, 此方法隐藏了Clone继承方法以提供强类型实现。For convenience, this method shadows the inherited Clone method to provide a strongly typed implementation.