mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-09 10:17:49 +00:00
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
namespace ElectronNET.API.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
|
public class Rectangle
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the x.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The x.
|
|
/// </value>
|
|
public int X { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the y.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The y.
|
|
/// </value>
|
|
public int Y { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the width.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The width.
|
|
/// </value>
|
|
public int Width { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the height.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The height.
|
|
/// </value>
|
|
public int Height { get; set; }
|
|
|
|
/// <summary>
|
|
/// Convert this <see cref="Rectangle"/> to <see cref="System.Drawing.Rectangle"/>.
|
|
/// </summary>
|
|
/// <param name="rectangle">The rectangle.</param>
|
|
public static implicit operator System.Drawing.Rectangle(Rectangle rectangle)
|
|
{
|
|
return new System.Drawing.Rectangle(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
|
|
}
|
|
}
|
|
} |