Change 類別

定義

抽象類別,實作此類別時會描述模型樹狀結構的變更。Abstract class that, when implemented, describes a change to the model tree.

public ref class Change abstract
public abstract class Change
type Change = class
Public MustInherit Class Change
繼承
Change

備註

復原/取消復原基礎結構會使用這個類別來追蹤編輯時段期間所進行的變更。This class is used by the undo/redo infrastructure to keep track of the changes made during an editing episode.

建構函式

Change()

建立 Change 類別的新執行個體。Creates a new instance of the Change class.

屬性

Description

在衍生類別中實作時,會取得變更的描述。When implemented in a derived class, gets a description of the change.

方法

Apply()

在衍生類別中實作時,會將變更套用於目前的執行個體。When implemented in a derived class, applies the change to the current instance.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetInverse()

在衍生類別中實作時,會擷取變更的逆元。When implemented in a derived class, retrieves the inverse of the change.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於