CODRectComponent Class
class CODRectComponent: public CODPointComponent
Rectangle component.The following properties are added to the component by this class:
OD_PROP_LINE, OD_PROP_FILL
Defined in: OdRectComp.h
See Also
Component Property Identifiers
Class Members
Constructor.
CODRectComponent(const CODRectComponent& src)
Copy constructor.
virtual ~CODRectComponent()
Destructor.
BOOL Create(CRect rect)
Creates the rectangle component from a CRect object.
BOOL Create(int nLeft, int nTop, int nRight, int nBottom)
Creates the rectangle component from boundary information.
CODRectComponent& operator=(const CODRectComponent& src)
Assignment operator: sets the component's attributes equal to	that of the r-value component.
virtual CODComponent* Dup() const
Creates a copy of this component.
virtual void OnDraw(CDC* pDC)
Draws the rectangle component.
virtual OD_MOVEVERTEX_RC CalculateMovedVertices(int nIndex, int nOffsetX, int nOffsetY)
Calculates the new position of a vertex being moved.
virtual void Serialize(CArchive& ar)
Serializes the component.