Styles
Get or set the Name styles in the grid selection
BOOL Styles( int r1, int c1, int r2, int c2, vector<string> & vs, BOOL bGet )
TRUE if success else FALSE.
Ex1
int Grid_Styles() { BOOL bRet; Page pg = Project.FindPage("Book1"); Datasheet dats = pg.Layers("Sheet1"); Grid gStyle; if(!gStyle.Attach(dats)) return 1; vector<string> vsName; int nRowStart=10,nRowEnd=11,nColStart=1,nColEnd=3; bRet = gStyle.Styles(nRowStart,nColStart,nRowEnd,nColEnd,vsName,TRUE); return 1; }
origin.h