GetExtendedLabel
Get the matrix object label by label type.
BOOL GetExtendedLabel(string &str, int nn, BOOL bByType = TRUE)
typedef enum { RCLT_INVALID = -1, RCLT_LONG_NAME, RCLT_UNIT, RCLT_COMMENT, RCLT_PARAM, } ROWCOLLABELTYPE;
plus an optional offset for RCLT_PARAM, like RCLT_PARAM + 1, RCLT_PARAM + 2, etc.
Returns TRUE if successful, else return FALSE.
EX1
//Output the unit label of the matrixobject. void MatrixObject_GetExtendedLabel_ex1() { MatrixLayer ml = Project.ActiveLayer(); if ( ml ) { MatrixObject mo = ml.MatrixObjects(0); string strUnits; if( mo.GetExtendedLabel(strUnits, RCLT_UNIT) ) out_str(strUnits); } }
MatrixObject::SetExtendedLabel, MatrixObject::GetLabel, MatrixObject::GetName, MatrixObject::GetLongName, MatrixObject::GetComments, MatrixObject::GetUnits, MatrixObject::GetParameters
origin.h