Example #1
0
 //		private
 /// <summary>
 /// Copy fields from this instance to cloned instance drawObject.
 /// Called from Clone functions of derived classes.
 /// </summary>
 /// <param name="drawObject">Object being cloned</param>
 protected void FillDrawObjectFields(DrawLogic drawObject)
 {
     drawObject.Selected   = Selected;
     drawObject.color      = color;
     drawObject.penWidth   = penWidth;
     drawObject.ID         = ID;
     drawObject._brushType = _brushType;
     drawObject._penType   = _penType;
     //drawObject.drawBrush = drawBrush;
     //drawObject.drawpen = drawpen;
     drawObject.fillColor = fillColor;
     drawObject._rotation = _rotation;
     //drawObject._center = _center;
 }
Example #2
0
        /// <summary>
        /// Clone this instance.
        /// </summary>

        public override DrawObject Clone()
        {
            DrawLogic drawlogic = new DrawLogic(Parentpagelist);

            return(drawlogic);
        }