GetTypeFormatEtc
to get the type of tick label
int GetTypeFormatEtc( int & nType, string * pstr = NULL, int * pnFormat = NULL )
Return 0 if no error, otherwise error code enumeration as AXISLABELACCESSERROR
//Get the type of x axis tick label. void AxisObject_GetTypeFormatEtc_Ex1() { GraphLayer gl = Project.ActiveLayer(); AxisObject aoXLabel = gl.XAxis.AxisObjects(AXISOBJPOS_LABEL_FIRST); int nType, nFormat; string str; int iRet; iRet = aoXLabel.GetTypeFormatEtc(nType, &str, &nFormat); if(iRet ==0) { out_str("Get successfully"); out_int("Type:", nType); } }
SetTypeFormatEtc
origin.h