CODModel::SpaceComponentsDown

Space the components evenly down the canvas.

Defined in: OdModel.cpp

Syntax

void CODModel::SpaceComponentsDown(CODComponentSet* pCompSet, const int nVertSpacing)

void CODModel::SpaceComponentsDown(CODComponentSet* pCompSet)

Return Value

void

Parameters

pCompSet

Set of components to space.

nVertSpacing

Vertical spacing value.

Comments

The components are sorted based on their vertical position, so that spacing is applied starting with the top-most component. The top-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 top and bottom 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.