2017-10-15 21:39:52 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public class Size
|
|
|
|
|
|
{
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the width.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The width.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int Width { get; set; }
|
|
|
|
|
|
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// <summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// Gets or sets the height.
|
2017-10-23 19:08:10 +02:00
|
|
|
|
/// </summary>
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <value>
|
|
|
|
|
|
/// The height.
|
|
|
|
|
|
/// </value>
|
2017-10-15 21:39:52 +02:00
|
|
|
|
public int Height { get; set; }
|
2023-08-24 21:09:19 -04:00
|
|
|
|
|
|
|
|
|
|
/// <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
|
|
|
|
}
|
|
|
|
|
|
}
|