ModelChangedEventArgs
This class represents a change to a model.
实现: IUndoableEdit
构造函数
ModelChangedEventArgs()
The empty/default constructor produces an EventArgs whose properties still need to be initialized.
ModelChangedEventArgs(string, object, object, object)
This constructor initializes the mostly commonly used properties.
- pname
- the PropertyName property
- data
- the Data property
- oldval
- the OldValue property
- newval
- the NewValue property
ModelChangedEventArgs(ModelChangedEventArgs)
This is basically a "copy constructor", making a copy of the given ModelChangedEventArgs.
- e
属性
Change : ModelChange
Gets or sets the kind of change that this represents.
Model : IDiagramModel
Gets or sets the IDiagramModel that has been modified.
方法
Clear()
Forget any references that this object may have.
GetParam(bool) : object
This is a convenient method to get the right parameter value, depending on the value of .
- undo
返回值: either OldParam or NewParam
GetValue(bool) : object
This is a convenient method to get the right value, depending on the value of .
- undo
返回值: either OldValue or NewValue
Redo()
Re-perform the document change after an Undo by calling Boolean).
Undo()
Reverse the effects of this document change by calling Boolean).