DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,60 @@
using System;
using System.Text;
namespace DevComponents.DotNetBar.Presentation
{
/// <summary>
/// Describes the padding for the shape. Padding is the space inside the shape and between it's child shapes.
/// </summary>
internal class PaddingInfo
{
/// <summary>
/// Creates new instance of the class.
/// </summary>
public PaddingInfo() { }
/// <summary>
/// Creates new instance of the class and initializes it with default values.
/// </summary>
public PaddingInfo(int left, int top, int right, int bottom)
{
this.Left = left;
this.Top = top;
this.Right = right;
this.Bottom = bottom;
}
/// <summary>
/// Gets or sets the left padding in pixels.
/// </summary>
public int Left = 0;
/// <summary>
/// Gets or sets the right padding in pixels.
/// </summary>
public int Right = 0;
/// <summary>
/// Gets or sets the top padding in pixels.
/// </summary>
public int Top = 0;
/// <summary>
/// Gets or sets the bottom padding in pixels.
/// </summary>
public int Bottom = 0;
/// <summary>
/// Gets the total horizontal padding.
/// </summary>
public int HorizontalPadding
{
get { return Left + Right; }
}
/// <summary>
/// Gets the total vertical padding.
/// </summary>
public int VerticalPadding
{
get { return Top + Bottom; }
}
}
}