CODModel::SpaceComponentsAcross

Space the components evenly across the canvas.

Defined in: OdModel.cpp

Syntax

void CODModel::SpaceComponentsAcross(CODComponentSet* pCompSet, const int nHorzSpacing)

void CODModel::SpaceComponentsAcross(CODComponentSet* pCompSet)

Return Value

void

Parameters

pCompSet

Set of components to space.

nHorzSpacing

Horizontal spacing value.

Comments

The components are sorted based on their horizontal position, so that spacing is applied starting with the left-most component. The left-most component is not moved. If the spacing value is supplied, the components are spaced according to that value. If the spacing value is not supplied, it is calculated by dividing equally the unused space between the left and right component.

If a symbol has a label beyond the base region of the symbol, it is possible to exclude this label from layout calculation using the function SetAlignNoLabel.