Assembly: Matrix;
Namespace: Prognoz.Platform.Interop.Matrix;
The IMatrixWritableProxy interface is used to work with proxy object of matrix.
IMatrixWritableProxy
To get object of this type, cast the matrix obtained in IMatrixEx.CreateWritableProxyO to IMatrixWritableProxy.Proxy object enables working separately with initial and changed matrix data. On creating proxy object, data of initial matrix will be copied to the BaseMatrix matrix. The ChangeMatrix matrix will be also created, but it will be empty.
On changing data in initial matrix, all changes will be fixed in the ChangeMatrix matrix. Initial data will be still available in the BaseMatrix matrix. On calling the ApplyChanges method, changes from the ChangeMatrix matrix will be applied to the BaseMatrix matrix. On calling the RevertChanges method, the ChangeMatrix matrix will be cleared and initial matrix will be restored from the BaseMatrix matrix.
After calling any from the methods (ApplyChanges or RevertChanges), the ChangeMatrix matrix will be cleared. If the iterator was created for the ChangeMatrix matrix, then it becomes incorrect. To continue work, the iterator must be recreated.
Property name | Brief description | |
The BaseMatix property returns source data matrix of proxy object. | ||
The ChangeMatrix property returns changed data matrix of proxy object. |
Method name | Brief description | |
The ApplyChanges method applies all changes to proxy object of data matrix. | ||
The RevertChanges method cancels all changes of proxy object of data matrix. |
See also: