wks_add_show_labels

 

Contents

Description

Add more labels to worksheet column lablel region, make display order according order in vnType

Syntax

bool wks_add_show_labels( Worksheet & wks, const vector<int> & vnType, bool bReplace = false, bool bUndo = false )

Parameters

wks
[input] the worksheet to set show labels
vnType
[input] vector of labels to add
bReplace
[input] replace the last labels or not
bUndo

Return

true if success

Examples

EX1

// configure active sheet to show Sampling Inverval and SparkLine in order
//append to the curernt Labels
void wks_add_show_labels_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    vector<int> vn = {RCLT_SAMPLE_RATE, RCLT_SPARKLINE}; 
    wks_add_show_labels(wks, vn, false);
}

Remark

See Also

wks_set_show_labels

header to Include

origin.h

Reference