BCGSuite for MFC
virtual CBCGPDiagramTextDataObject* CBCGPDiagramTableShape::GetPartTextData ( UINT  nPartID)
virtual

Retrieves the text data object of the diagram item.

Parameters
nPartIDA data object identifier. To refer a custom text data object the identifier must be greater or equal P_CustomFirst (declared in CBCGPDiagramVisualObject::Parts).
Returns
Returns a pointer to text data of the diagram item if succeeded, NULL if text data is not found.

The GetPartTextData method overrides the default implementation to support custom text data objects.

  • Retrieving the data object by (P_CustomFirst) returns a pointer to data object of the first table line.
  • Retrieving the data object by (P_CustomFirst + 1) returns a pointer to data object of the second table line, etc.
  • Retrieving the data object by (P_Caption) returns a pointer to the data object for the caption text. If a diagram item has no caption then referring by P_Caption returns NULL.
See also
CBCGPDiagramVisualObject::GetPartTextData, CBCGPDiagramVisualObject::Parts

Reimplemented from CBCGPDiagramVisualObject.