2.2.3.2.4 CategoricalMap::GetMapType

Description

Get the CategoricalMap type. Origin currently supports Ordinal maps in which items are sorted(ordered) alphanumerically.

Syntax

int GetMapType( )

Parameters

Return

The CategoricalMap type code (current possible value CMT_ORDINAL=2).

Examples

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();
    }
}

Remark

See Also

Header to Include

origin.h