// ----------------------- // Public Constructors // ----------------------- /// <summary> /// RectangleF Constructor /// </summary> /// /// <remarks> /// Creates a RectangleF from PointF and SizeF values. /// </remarks> public RectangleF(PointF location, SizeF size) { x = location.X; y = location.Y; width = size.Width; height = size.Height; }
/// <summary> /// Inflate Method /// </summary> /// /// <remarks> /// Inflates the RectangleF by a specified Size. /// </remarks> public void Inflate(SizeF size) { x -= size.Width; y -= size.Height; width += size.Width * 2; height += size.Height * 2; }
//--------- public void DrawText(char[] str, int startAt, int len, PointF point, SizeF size) { #if DEBUG dbugCounter.dbugDrawStringCount++; #endif var g = this.canvas; g.DrawText(str, startAt, len, new Rectangle( (int)point.X, (int)point.Y, (int)size.Width, (int)size.Height), 0 ); }