ArrangeAZ
Sort this CategoricalMap in ascending order.
void ArrangeAZ( )
EX1
void CategoricalMap_ArrangeAZ_ex1() { // a Worksheet with at least 1 column must exist and contain data prior to execution Worksheet wks=Project.ActiveLayer(); if (wks) { string strWksColname = wks.Columns(0).GetName(); strWksColname = wks.GetPage().GetName() + "_" + strWksColname; StringArray vMyCatMap; CategoricalData cdMyCatData(strWksColname); vMyCatMap = (StringArray) cdMyCatData.Map; // CategoricalMap is sorted in ascending order by default cdMyCatData.Map.ArrangeZA(); // Sort CategoricalMap in descending order vMyCatMap = (StringArray) cdMyCatData.Map; cdMyCatData.Map.ArrangeAZ(); // Sort CategoricalMap in ascending order vMyCatMap = (StringArray) cdMyCatData.Map; } }
CategoricalMap::ArrangeZA
origin.h