mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-17 13:45:34 +00:00
33 lines
830 B
C#
33 lines
830 B
C#
namespace ElectronNET.API.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class Size
|
|
{
|
|
/// <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="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);
|
|
}
|
|
}
|
|
} |