/// <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); } }
/// <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); } }
/// <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); } }
/// <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); }
/// <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); } }
/// <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); }
/// <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)); }