ToString formatting of Point and Rectangle

This commit is contained in:
glax 2024-04-16 04:45:50 +02:00
parent 7e22fa58e3
commit 073c2beebc
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public struct Point
public override string ToString()
{
return $"{{X={X,-7:####0}, Y={Y,-7:####0}}}";
return $"{{X={X,-6:####0}, Y={Y,-6:####0}}}";
}
public override bool Equals(object? obj)

View File

@ -94,6 +94,6 @@ public struct Rectangle
public override string ToString()
{
return $"{{Left={Left,-7:####0}, Top={Top,-7:####0}, Right={Right,-7:####0}, Bottom={Bottom,-7:####0}}}";
return $"{{LTRB {Left,-6:####0},{Top,-6:####0},{Right,-6:####0},{Bottom,-6:####0}}}";
}
}