namespace ElectronNET.API.Entities
{
///
///
///
/// Up-to-date with Electron API 39.2
public class Rectangle
{
///
/// Gets or sets the x.
///
///
/// The x.
///
public int X { get; set; }
///
/// Gets or sets the y.
///
///
/// The y.
///
public int Y { get; set; }
///
/// Gets or sets the width.
///
///
/// The width.
///
public int Width { get; set; }
///
/// Gets or sets the height.
///
///
/// The height.
///
public int Height { get; set; }
///
/// Convert this to .
///
/// The rectangle.
public static implicit operator System.Drawing.Rectangle(Rectangle rectangle)
{
return new System.Drawing.Rectangle(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
}
}
}