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