【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.14.3.10 graph_arrange_layers
Contents
Description
This function is used to rearrange layers on a graphpage
Syntax
bool graph_arrange_layers( GraphPage & gp, int nRows, int nCols )
Parameters
- gp
- [modify]The GraphPage object which contains layers.
- nRows
- [input]The number of rows into which layers will be arranged.
- nCols
- [input]The number of columns into which layers will be arranged.
Return
Return true if success, else return false;
Examples
EX1
void graphpage_arrange_layers_ex1() { GraphPage gp; gp.Create("Origin"); if ( gp ) { //make sure there are 4 layers on the page while ( gp.Layers.Count() < 4 ) gp.AddLayer(); //arrange layers into 2 by 2 grid. graph_arrange_layers(gp, 2, 2); } }
Remark
This function is used to rearrange layers on a GraphPage object, and is available in Origin8.1 and later versions.
See Also
Header to Included
origin.h