|
|
|
@ -256,7 +256,7 @@ namespace Avalonia |
|
|
|
/// <summary>
|
|
|
|
/// Inflates the rectangle.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="thickness">The thickness.</param>
|
|
|
|
/// <param name="thickness">The thickness to be subtracted for each side of the rectangle.</param>
|
|
|
|
/// <returns>The inflated rectangle.</returns>
|
|
|
|
public Rect Inflate(double thickness) |
|
|
|
{ |
|
|
|
@ -266,7 +266,7 @@ namespace Avalonia |
|
|
|
/// <summary>
|
|
|
|
/// Inflates the rectangle.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="thickness">The thickness.</param>
|
|
|
|
/// <param name="thickness">The thickness to be subtracted for each side of the rectangle.</param>
|
|
|
|
/// <returns>The inflated rectangle.</returns>
|
|
|
|
public Rect Inflate(Thickness thickness) |
|
|
|
{ |
|
|
|
@ -278,20 +278,18 @@ namespace Avalonia |
|
|
|
/// <summary>
|
|
|
|
/// Deflates the rectangle.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="thickness">The thickness.</param>
|
|
|
|
/// <param name="thickness">The thickness to be subtracted for each side of the rectangle.</param>
|
|
|
|
/// <returns>The deflated rectangle.</returns>
|
|
|
|
/// <remarks>The deflated rectangle size cannot be less than 0.</remarks>
|
|
|
|
public Rect Deflate(double thickness) |
|
|
|
{ |
|
|
|
return Deflate(new Thickness(thickness / 2)); |
|
|
|
return Deflate(new Thickness(thickness)); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Deflates the rectangle by a <see cref="Thickness"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="thickness">The thickness.</param>
|
|
|
|
/// <param name="thickness">The thickness to be subtracted for each side of the rectangle.</param>
|
|
|
|
/// <returns>The deflated rectangle.</returns>
|
|
|
|
/// <remarks>The deflated rectangle size cannot be less than 0.</remarks>
|
|
|
|
public Rect Deflate(Thickness thickness) |
|
|
|
{ |
|
|
|
return new Rect( |
|
|
|
|