Insets record struct Core
Space on the four sides of a box (a tile's margin, a board's padding). A single number converts to the same space on every side.
public readonly record struct Insets
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Constructors
Insets
public Insets(double all);The same space on every side.
Insets
public Insets(double horizontal, double vertical);horizontal left and right, vertical above and below.
Insets
public Insets(double Left, double Top, double Right, double Bottom);Space on the four sides of a box (a tile's margin, a board's padding). A single number converts to the same space on every side.
Parameters
LeftSpace on the left.
TopSpace above.
RightSpace on the right.
BottomSpace below.
Properties
Bottom
public double Bottom { get; init; }Space below.
Horizontal
public double Horizontal { get; }Left plus right.
Left
public double Left { get; init; }Space on the left.
Right
public double Right { get; init; }Space on the right.
Top
public double Top { get; init; }Space above.
Vertical
public double Vertical { get; }Top plus bottom.
Methods
Deflate
public LogRect Deflate(LogRect box);box shrunk by these insets (never below zero size).
Operators
operator implicit
public static implicit operator Insets(double all);The same space on every side.
