2.2.4.22.40 Grid::Styles

Description

Get or set the Name styles in the grid selection

Syntax

BOOL Styles( int r1, int c1, int r2, int c2, vector<string> & vs, BOOL bGet )

Parameters

r1
[input] index of the first row in the selection, if any
c1
[input] index of the first column in the selection, if any
r2
[input] index of the last row in the selection, if any
c2
[input] index of the last column in the selection, if any
vs
[input|output] string array to receive or specify the name styles
bGet
[input] if true, to get the name styles, else to set the name styles

Return

TRUE if success else FALSE.

Examples

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

Remark

See Also

Header to Include

origin.h