CODSpacingCommand Class
class CODSpacingCommand: public CODCommand
Evenly space a set of components. The spacing command can be used to adjust the position of the set of components so that they are evenly spaced horizontally, vertically, or both. The spacing value can either be a fixed value specified by the caller or it can be calculated automatically so that the components are spread evenly across their current range. The SetHorizontalSpacing and SetVerticalSpacing functions are used to set the spacing mode and optional spacing value.The command saves the position of each component in a map prior to execution, so that CODComponent::SetPosition can be used by CODSizeCommand::Unexecute to restore the position and size of the components.
Defined in: OdSpacingCmd.h
See Also
CODModel::SpaceComponentsAcross, CODModel::SpaceComponentsDown
Class Members
CODSpacingCommand(CODModel* pModel)
Constructor.
virtual ~CODSpacingCommand()
Destructor.