DoubleCollection.Clone 方法

定義

建立這個 DoubleCollection 的可修改複製品,深層複製這個物件的值。Creates a modifiable clone of this DoubleCollection, 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.

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

傳回

目前物件的可修改複本。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物件 (或任何Freezable物件) 的可修改複本。This 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.

適用於