RectangleF.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public override string ToString() => $"[{_x}, {_y}, {_width}, {_height}]";
}

Usage Example

Example #1
0
 public void ToStringTest(float x, float y, float width, float height)
 {
     var r = new RectangleF(x, y, width, height);
     Assert.Equal(string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1},Width={2},Height={3}}}", r.X, r.Y, r.Width, r.Height), r.ToString());
 }
All Usage Examples Of RectangleF::ToString