public void FillRectangle(ISolidBrush solidBrush, RectangleF rectangle) { CallsToFillRectangle.Add(new CallToFillRectangle { SolidBrush = solidBrush, Rectangle = rectangle }); }
public void DrawString(string @string, Font font, ISolidBrush solidBrush, PointF point) { CallsToDrawString.Add(new CallToDrawString { String = @string, Font = font, SolidBrush = solidBrush, Point = point }); }
/// <summary> /// Initializes a new instance of a SolidBrush with the specified <paramref name="color"/> /// </summary> /// <param name="color">Color for the brush</param> /// <param name="generator">Generator to create the brush for</param> public SolidBrush(Color color, Generator generator = null) { handler = generator.CreateShared <ISolidBrush> (); ControlObject = handler.Create(color); }
SolidBrush(ISolidBrush handler, object control) { this.handler = handler; this.ControlObject = control; }
/// <summary> /// Initializes a new instance of a SolidBrush with the specified <paramref name="color"/> /// </summary> /// <param name="color">Color for the brush</param> /// <param name="generator">Generator to create the brush for</param> public SolidBrush (Color color, Generator generator = null) { handler = generator.CreateShared <ISolidBrush> (); ControlObject = handler.Create (color); }
SolidBrush (ISolidBrush handler, object control) { this.handler = handler; this.ControlObject = control; }
/// <summary> /// Fills the interior of the specified <paramref name="rectangle"/> /// using the specified <paramref name="solidBrush"/>. /// </summary> /// <param name="solidBrush">An <see cref="ISolidBrush"/> that /// determines the appearance of the /// <paramref name="rectangle"/>.</param> /// <param name="rectangle">A <see cref="RectangleF"/> describing the /// area to be filled.</param> /// <exception cref="ArgumentNullException">An argument is /// <c>null</c>.</exception> public void FillRectangle(ISolidBrush solidBrush, RectangleF rectangle) { native.FillRectangle(solidBrush.Native, rectangle); }
/// <summary> /// Draws the specified <paramref name="string"/> at the specified /// <paramref name="point"/> with the specified /// <paramref name="solidBrush"/> and <paramref name="font"/>. /// </summary> /// <param name="string">The <see cref="string"/> to draw.</param> /// <param name="font">A <see cref="Font"/> that determines the /// appearance of the <paramref name="string"/>.</param> /// <param name="solidBrush">An <see cref="ISolidBrush"/> that /// determines the appearance of the <paramref name="string"/>.</param> /// <param name="point">A <see cref="PointF"/> that defines the top-left /// position of the <paramref name="string"/>.</param> /// <exception cref="ArgumentNullException">An argument is /// <c>null</c>.</exception> public void DrawString(string @string, Font font, ISolidBrush solidBrush, PointF point) { native.DrawString(@string, font, solidBrush.Native, point); }