コード例 #1
0
 /// <summary>
 /// Receives a call when the control that the designer is managing has painted
 /// its surface so the designer can paint any additional adornments on top of
 /// the control.
 /// </summary>
 /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
 protected override void OnPaintAdornments(PaintEventArgs e)
 {
     if (_checkBox != null && !_checkBox.AutoSize)
     {
         NuGenDesignerRenderer.DrawAdornments(e.Graphics, _checkBox.ClientRectangle);
     }
 }
コード例 #2
0
 /// <summary>
 /// Receives a call when the control that the designer is managing has painted its surface so the designer can paint any additional adornments on top of the control.
 /// </summary>
 /// <param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs"></see> the designer can use to draw on the control.</param>
 protected override void OnPaintAdornments(PaintEventArgs e)
 {
     if (_switchButton != null)
     {
         NuGenDesignerRenderer.DrawAdornments(e.Graphics, _switchButton.ClientRectangle);
     }
 }
コード例 #3
0
 /// <summary>
 /// Receives a call when the control that the designer is managing has painted its surface so the designer can paint any additional adornments on top of the control.
 /// </summary>
 /// <param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs"></see> the designer can use to draw on the control.</param>
 protected override void OnPaintAdornments(PaintEventArgs e)
 {
     if (_radioButton != null && !_radioButton.AutoSize)
     {
         NuGenDesignerRenderer.DrawAdornments(e.Graphics, _radioButton.ClientRectangle);
     }
 }
コード例 #4
0
        /// <summary>
        /// Receives a call when the control that the designer is managing has painted
        /// its surface so the designer can paint any additional adornments on top of
        /// the control.
        /// </summary>
        /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
        protected override void OnPaintAdornments(PaintEventArgs e)
        {
            if (_pinpointWindow != null)
            {
                NuGenDesignerRenderer.DrawAdornments(e.Graphics, _pinpointWindow.ClientRectangle);
            }

            base.OnPaintAdornments(e);
        }
コード例 #5
0
        /// <summary>
        /// Receives a call when the control that the designer is managing has painted
        /// its surface so the designer can paint any additional adornments on top of
        /// the control.
        /// </summary>
        /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
        protected override void OnPaintAdornments(PaintEventArgs e)
        {
            Control ctrl = this.Control;

            if (ctrl != null)
            {
                NuGenDesignerRenderer.DrawAdornments(e.Graphics, ctrl.ClientRectangle);
            }
        }
コード例 #6
0
 /// <summary>
 /// Receives a call when the control that the designer is managing has painted
 /// its surface so the designer can paint any additional adornments on top of
 /// the control.
 /// </summary>
 /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
 protected override void OnPaintAdornments(PaintEventArgs e)
 {
     NuGenDesignerRenderer.DrawAdornments(e.Graphics, _ctrlReflector.ClientRectangle);
 }
コード例 #7
0
 /// <summary>
 /// </summary>
 /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
 protected override void OnPaintAdornments(PaintEventArgs e)
 {
     NuGenDesignerRenderer.DrawAdornments(e.Graphics, new Rectangle(0, 0, _pictureBox.Width, _pictureBox.Height));
 }