CODComponent::GetAlignmentPoint

Retrieves one of the alignment points of a component. Alignment points are used to align a component with the grid.

Defined in: OdComponent.cpp

Syntax

void CODComponent::GetAlignmentPoint(OD_CONTROL_POINT nAlignPoint, float& fAlignX, float& fAlignY)

CPoint CODComponent::GetAlignmentPoint(OD_CONTROL_POINT nAlignPoint)

Return Value

Either void, or a CPoint with the alignment point values.

Parameters

nAlignPoint

The alignment point to retrieve.

fAlignX

The horizontal coordinate of the alignment point.

fAlignY

The vertical coordinate of the alignment point.

GetAlignmentPoint

The type of alignment point requested. Can be one of the following:

OD_TOP_LEFT

Top-left alignment point.

OD_TOP_CENTER

Top-center alignment point.

OD_TOP_RIGHT

Top-right alignment point.

OD_CENTER_LEFT

Center-left alignment point.

OD_CENTER

Center alignment point.

OD_CENTER_RIGHT

Center-right alignment point.

OD_BOTTOM_LEFT

Bottom-left alignment point.

OD_BOTTOM_CENTER

Bottom-center alignment point.

OD_BOTTOM_RIGHT

Bottom-right alignment point.

Comments

By default, the alignment points are the same as the control points. Override these methods to supply different alignment points.