BCGSuite for MFC
int CBCGPDiagramVisualObject::AddTextData ( const CString &  str,
const CBCGPColor clrText = CBCGPColor::Black 
)

Adds a text data to the diagram item.

Parameters
strThe text label.
clrTextThe text color (black by default).
Returns
A zero-based index of the item text label in the labels list.