DataPlot::GetFunctionContext

 

Description

Get function plot context.

Syntax

BOOL GetFunctionContext( FunctionPlotContext & context )

Parameters

context
[output] function plot context

Return

TRUE if successfully

Examples

EX1

//assume there is a funtion plot
void     DataPlot_GetFunctionContext_Ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if( gl )
    {
        DataPlot dp= gl.DataPlots();
        FunctionPlotContext context;
        BOOL bSuccess = dp.GetFunctionContext(context);
        printf("GetFunctionContext return: %d\n", bSuccess);
        if(bSuccess)
            printf("Formula1 = %s\n", context.strFormula1);
    }
}

Remark

See Also

DataPlot::SetFunctionContext

header to Included

origin.h