Thickness - ahatornn/clforms GitHub Wiki
Thickness
ClForms.Common.Thickness
Represents information about internal fields and fields associated with a user interface (UI) element
public struct Thickness
{
…
/// Returns Thickness with default property values
public static readonly Thickness Empty = new Thickness(0);
…
}
Constructors
| Syntax |
Description |
| Thickness(int uniformLength) |
Initialize a new Thickness instance |
| Thickness(int left, int top, int right, int bottom) |
Initialize a new Thickness instance |
| Thickness(int leftAndRight, int topAndBottom) |
Initialize a new Thickness instance |
Properties
| Name |
Type |
Description |
| All |
int |
Gets or sets the value of internal fields for all edges |
| Bottom |
int |
Gets or sets the value of the inner margins for the bottom edge |
| Left |
int |
Gets or sets the value of the inner margins for the left edge |
| Right |
int |
Gets or sets the value of the inner margins for the right edge |
| Top |
int |
Gets or sets the value of the inner margins for the top edge |
| Horizontal |
int |
Gets the merged internal margins for the right and left edges |
| Vertical |
int |
Gets the merged internal margins for the top and bottom edges |
| Size |
Size |
Returns information in the form Size |
Methods
| Syntax |
Description |
| Add(Thickness p1, Thickness p2) |
Calculates the sum of two given Thickness values |
| Subtract(Thickness p1, Thickness p2) |
Subtracts one specified value of type Thickness from another |