DrawingGroup.Clone 方法


建立這個 DrawingGroup 的可修改深層複本,並製作其他的深層複本。Creates a modifiable deep copy of this DrawingGroup and makes deep copies of its values.

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



目前物件的可修改複本。A modifiable clone of the current object. 已複製物件的 IsFrozen 屬性會傳回 false,即使來源的 IsFrozen 屬性是 true 也一樣。The IsFrozen property of the cloned object returns false even if the IsFrozen property of the source is true.


您可以使用這個方法來產生唯讀物件的可修改複本 FreezableUse this method to produce modifiable copies of read-only Freezable objects. 為了方便起見,這個方法會將繼承的版本遮蔽為強型別實作為。For convenience, this method shadows the inherited version with a strongly typed implementation.

當此方法複製相依性屬性時,它會複製資源參考和資料系結,即使它們可能無法再解析也一樣。When this method copies dependency properties, it copies resource references and data bindings even though they might no longer resolve. 它不會複製動畫或其目前的值。It does not copy animations or their current values.

如需詳細資訊,請參閱Freezable.CloneFor more information, see Freezable.Clone.