GetMapType
Get the CategoricalMap type. Origin currently supports Ordinal maps in which items are sorted(ordered) alphanumerically.
int GetMapType( )
The CategoricalMap type code (current possible value CMT_ORDINAL=2).
EX1
void CategoricalMap_GetMapType_Ex1() { // a Worksheet with at least 1 column must exist prior to execution Worksheet wks=Project.ActiveLayer(); if (wks) { string strWksColname = wks.Columns(0).GetName(); strWksColname = wks.GetPage().GetName() + "_" + strWksColname; int iMapType; CategoricalData cdMyCatData(strWksColname); iMapType = cdMyCatData.Map.GetMapType(); } }
origin.h