MatrixLayer
The MatrixLayer class provides methods and properties common to matrix layers in Origin matrix pages. An Origin matrix contains a number of matrix objects thus the MatrixLayer class contains a collection of all the matrix objects in the matrix layer.
An Origin C MatrixLayer object is a wrapper object that is a reference to an internal Origin matrix layer object. Wrapper objects do not actually exist in Origin and merely refer to the internal Origin object. Consequently, multiple Origin C wrapper objects can refer to the same internal Origin object.
The MatrixLayer class is derived from the Datasheet, Layer, and OriginObject classes from which it inherits methods and properties.
EX1
void MatrixLayer_MatrixLayer_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if(ml) { Matrix mm(ml);// Get the active Matrix from a MatrixLayer printf("The active matrix is %d x %d\n",mm.GetNumRows(), mm.GetNumCols()); } }
origin.h