CODComponent::ValidateTranslate

BOOLCODComponent::ValidateTranslate(int&nOffsetX, int&nOffsetY)

Determines if the component can be moved to the given offsets.

Defined in: OdComponent.cpp

Return Value

Boolean indicating if the given translation offsets are valid.

Parameters

nOffsetX

Translation offset for X axis (in/out).

nOffsetY

Translation offset for Y axis (in/out).

Comments

This function uses  ValidatePosition to determine if the given translation offsets are valid. If they are not valid, the translation offsets are adjusted so the component is moved to the origin returned by ValidatePosition.