PutLabelsByType
Put labels of the specified type into all columns.
BOOL PutLabelsByType(StringArray& arr, int nType, BOOL bCol = TRUE)
TRUE for success.
EX1
void Grid_PutLabelsByType_ex1() { Worksheet wks = Project.ActiveLayer(); if ( wks ) { wks.SetSize(-1, 2); StringArray arr1 = {"Comments1", "Comments2"}; Grid grid; grid.Attach(wks); grid.PutLabelsByType(arr1, RCLT_COMMENT); StringArray arr2; BOOL bRet = grid.GetLabelsByType(arr2, RCLT_COMMENT); if(bRet&&arr2[0] == "Comments1"&&arr2[1] == "Comments2"); out_str("Success put lables!"); } }
Grid::GetLabelsByType
origin.h