CODTextComponent::CalcLineBreaks

int CODTextComponent::CalcLineBreaks(CDC* pDC, CODLineBreakSet& setBreaks)

Calculates the line breaks for the text buffer.

Defined in: OdTextComp.cpp

Return Value

Number of lines in text buffer.

Parameters

pDC

Pointer to device context to use for calculations.

setBreaks

Reference to object in which to store line break information.

Comments

This function scans the current text buffer and determines the position and length of lines based on the format properties and text box width.