Exemplo n.º 1
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Creates a new filled rectangle object with a border line.</summary>
 /// <param name="penProp">Pen properties of the border line</param>
 /// <param name="brushProp">Brush properties of the rectangle</param>
 /// <param name="rWidth">Width of the rectangle</param>
 /// <param name="rHeight">Height of the rectangle</param>
 public RepRect(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight)
 {
     this.penProp   = penProp.penProp_Registered;
     this.brushProp = brushProp.brushProp_Registered;
     this.rWidth    = rWidth;
     this.rHeight   = rHeight;
 }
Exemplo n.º 2
0
        //----------------------------------------------------------------------------------------------------x
        /// <summary>Determines whether the specified object is equal to the current object.</summary>
        /// <param name="o">The object to compare with the current object.</param>
        /// <returns>true if the specified Object is equal to the current Object; otherwise, false.</returns>
        public override Boolean Equals(Object o)
        {
            if (o == null)
            {
                return(false);
            }
            BrushProp bp = (BrushProp)o;

            return(Equals(_color, bp._color));
        }
Exemplo n.º 3
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Creates a new filled rectangle object without a border line and with millimeter values.</summary>
 /// <param name="brushProp">Brush properties of the rectangle</param>
 /// <param name="rWidth">Width of the rectangle</param>
 /// <param name="rHeight">Height of the rectangle</param>
 public RepRectMM(BrushProp brushProp, Double rWidth, Double rHeight) : base(brushProp, RT.rMM(rWidth), RT.rMM(rHeight))
 {
 }
Exemplo n.º 4
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Creates a new filled rectangle object with a border line and millimeter values.</summary>
 /// <param name="penProp">Pen properties of the border line</param>
 /// <param name="brushProp">Brush properties of the rectangle</param>
 /// <param name="rWidth">Width of the rectangle</param>
 /// <param name="rHeight">Height of the rectangle</param>
 public RepRectMM(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight) : base(penProp, brushProp, RT.rMM(rWidth), RT.rMM(rHeight))
 {
 }