CODTextComponent::CalcTextSize

CSize CODTextComponent::CalcTextSize(CDC* pDC)

Calculate the size occupied by the text in logical units.

Defined in: OdTextComp.cpp

Return Value

Size of the text in logical units.

Parameters

pDC

Device context used to calculate text extent.

Comments

This function iterates over each line of text and calls GetTextExtent() to calculate the size occupied by the text in logical units.