Struct Padding
Padding struct
Namespace: Terminaux.Base.Structures
Assembly: Terminaux.dll
Syntax
public struct Padding
Constructors
| Edit this page View SourcePadding(int, int, int, int)
Makes a new padding instance
Declaration
public Padding(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
int | left | A left padding |
int | top | A top padding |
int | right | A right padding |
int | bottom | A bottom padding |
Padding(HorizontalPad, VerticalPad)
Makes a new padding instance
Declaration
public Padding(HorizontalPad horizontalPad, VerticalPad verticalPad)
Parameters
Type | Name | Description |
---|---|---|
HorizontalPad | horizontalPad | Horizontal padding |
VerticalPad | verticalPad | Vertical padding |
Properties
| Edit this page View SourceBottom
Gets the bottom padding
Declaration
public readonly int Bottom { get; }
Property Value
Type | Description |
---|---|
int |
Left
Gets the left padding
Declaration
public readonly int Left { get; }
Property Value
Type | Description |
---|---|
int |
Right
Gets the right padding
Declaration
public readonly int Right { get; }
Property Value
Type | Description |
---|---|
int |
Top
Gets the top padding
Declaration
public readonly int Top { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
System.ValueType.Equals(object)
|
Edit this page
View Source
Equals(Padding)
Declaration
public bool Equals(Padding other)
Parameters
Type | Name | Description |
---|---|---|
Padding | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
System.ValueType.GetHashCode()
Operators
| Edit this page View Sourceoperator ==(Padding, Padding)
Declaration
public static bool operator ==(Padding left, Padding right)
Parameters
Type | Name | Description |
---|---|---|
Padding | left | |
Padding | right |
Returns
Type | Description |
---|---|
bool |
operator !=(Padding, Padding)
Declaration
public static bool operator !=(Padding left, Padding right)
Parameters
Type | Name | Description |
---|---|---|
Padding | left | |
Padding | right |
Returns
Type | Description |
---|---|
bool |