CADability dotNET
Creates a ReversibleChange object. MethodOrPropertyName must be the name (casesensitive!)
of a public method or property that reverses the change when called with the parameters
given in the parameter "Parameter". If parameters contains exactly 1 object, the Undo
method will first look for a set-property with that type to reverse the change. If there
is no set-property with that name and type then the system will look for a method
with this single parameter.
Namespace: CADabilityAssembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Syntax
C# |
---|
public ReversibleChange(
Object objectToChange,
string methodOrPropertyName,
params Object[] parameters
) |
Visual Basic |
---|
Public Sub New ( _
objectToChange As Object, _
methodOrPropertyName As String, _
ParamArray parameters As Object() _
) |
Visual C++ |
---|
public:
ReversibleChange(
Object^ objectToChange,
String^ methodOrPropertyName,
... array<Object^>^ parameters
) |
Parameters
- objectToChange
- Type: System..::..Object
The object which will be or was changed
- methodOrPropertyName
- Type: System..::..String
the case sensitive name of the method or property
- parameters
- Type: array<System..::..Object>[]()[][]
The parameters neede to call this method or property
See Also