CODSymbolComponent::CreateLabel

Creates a new label for the symbol component.

Defined in: OdSymbolComp.cpp

Syntax

CODLabelComponent* CODSymbolComponent::CreateLabel(const LPCTSTR lpszText, const OD_CONTROL_POINT ctlPoint, CDC* pDC)

CODLabelComponent* CODSymbolComponent::CreateLabel(const LPCTSTR lpszText, CDC* pDC)

Return Value

Pointer to the new label.

Parameters

lpszText

Label text.

ctlPoint

Orientation control point for the label (see OD_CONTROL_POINT).

pDC

Pointer to device context for sizing the label.

Comments

This function creates a label and sets the orientation properties for the label. The AddLabel function is called to add the label to the symbol.