SetTypeFormatEtc
to set the type of tick label
int SetTypeFormatEtc( int nType, LPCSTR lpcsz, int nFormat = -1 )
Return 0 if no error, otherwise error code enumeration as AXISLABELACCESSERROR
//Set the tick label with tick-indexed string:"tick1 tick2 tick3". void AxisObject_SetTypeFormatEtc_Ex1() { GraphLayer gl = Project.ActiveLayer(); AxisObject aoXLabel = gl.XAxis.AxisObjects(AXISOBJPOS_LABEL_FIRST); int nType =9; string str ="tick1 tick2 tick3"; aoXLabel.SetTypeFormatEtc(nType, str); }
GetTypeFormatEtc
origin.h