CODLinkComponent::CreateLabel

Creates a new label for the symbol component.

Defined in: OdLinkComp.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

The function overrides the base class function CODSymbolComponent::CreateLabel and sets the line orientation for the label.