mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-09 05:34:51 +00:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace ElectronNET.API.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
|
public class AutoResizeOptions
|
|
{
|
|
/// <summary>
|
|
/// If `true`, the view's width will grow and shrink together with the window.
|
|
/// `false` by default.
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
public bool Width { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// If `true`, the view's height will grow and shrink together with the window.
|
|
/// `false` by default.
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
public bool Height { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// If `true`, the view's x position and width will grow and shrink proportionally
|
|
/// with the window. `false` by default.
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
public bool Horizontal { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// If `true`, the view's y position and height will grow and shrink proportionally
|
|
/// with the window. `false` by default.
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
public bool Vertical { get; set; } = false;
|
|
}
|
|
} |