TextDecorationCollection.Clone 方法


创建此 TextDecorationCollection 的可修改克隆,从而深度复制此对象的值。Creates a modifiable clone of this TextDecorationCollection, making deep copies of this object's values. 在复制依赖项属性时,此方法会复制资源引用和数据绑定(但可能不再解析),但不复制动画或其当前值。When copying 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::TextDecorationCollection ^ Clone();
public System.Windows.TextDecorationCollection Clone ();
override this.Clone : unit -> System.Windows.TextDecorationCollection
Public Function Clone () As TextDecorationCollection



当前对象的可修改复本。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.CloneFor more information, see Freezable.Clone.