GraphLayer::Groups

Description

get a GroupPlot object from the graph layer

Syntax

GroupPlot Groups( int nIndex )

Parameters

nIndex

Return

Examples

EX1

// you will need to use the GroupPlot object to control plot group settings
void GraphLayer_Groups_ex1(BOOL bColor, BOOL bShape, BOOL bSymbolInterior, int nGroupIndex = 0)
{
    GraphLayer gl = Project.ActiveLayer(); 
    
    if( !gl ) 
        return; 
    
    // get group plot by index from the active layer 
    GroupPlot gPlot = gl.Groups(nGroupIndex); 
    
    if( !gPlot ) 
        return; 
    
    vector<int> vv;
    if(bShape)
        vv.Add(3); //  3 is for symbol shape 
    if(bColor)
        vv.Add(0); // 0 for line color, which is also symbol color
    if(bSymbolInterior)
        vv.Add(8); // 8 for symbol interior
                                                             
    gPlot.Increment.Nested.nVal = 0; // not to be nested, as that will be more complicated
    gPlot.Increment.Nester.nVals = vv; // the Nester is an array of types of objects to do nested cycling in the group
}

Remark

See Also

header to Include

origin.h