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
VIEWS_API CODRectComponent()
Constructor.
VIEWS_API CODRectComponent(const CODRectComponent& src)
Copy constructor.
VIEWS_API virtual ~CODRectComponent()
Destructor.
VIEWS_API BOOL Create(CRect rect)
Creates the rectangle component from a CRect object.
VIEWS_API BOOL Create(int nLeft, int nTop, int nRight, int nBottom)
Creates the rectangle component from boundary information.
VIEWS_API CODRectComponent& operator=(const CODRectComponent& src)
Assignment operator: sets the component's attributes equal to that of the r-value component.
VIEWS_API virtual CODComponent* Dup() const
Creates a copy of this component.
VIEWS_API virtual void OnDraw(CDC* pDC)
Draws the rectangle component.
VIEWS_API virtual OD_MOVEVERTEX_RC CalculateMovedVertices(int nIndex, int nOffsetX, int nOffsetY)
Calculates the new position of a vertex being moved.
VIEWS_API virtual void Serialize(CArchive& ar)
Serializes the component.