Files
Electron.NET/src/ElectronNET.API/API/Entities/Size.cs

33 lines
830 B
C#
Raw Normal View History

2017-10-15 21:39:52 +02:00
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
2017-10-15 21:39:52 +02:00
public class Size
{
/// <summary>
/// Gets or sets the width.
/// </summary>
/// <value>
/// The width.
/// </value>
2017-10-15 21:39:52 +02:00
public int Width { get; set; }
/// <summary>
/// Gets or sets the height.
/// </summary>
/// <value>
/// The height.
/// </value>
2017-10-15 21:39:52 +02:00
public int Height { get; set; }
/// <summary>
/// Convert this <see cref="Size"/> to <see cref="System.Drawing.Size"/>.
/// </summary>
/// <param name="size">The size.</param>
public static implicit operator System.Drawing.Size(Size size)
{
return new System.Drawing.Size(size.Width, size.Height);
}
2017-10-15 21:39:52 +02:00
}
}