Struct Padding
Padding struct
Namespace
Syntax
public struct Padding
Constructors
Padding(int, int, int, int)
Makes a new padding instance
Declaration
public Padding(int left, int top, int right, int bottom)
Parameters
| Name | Type | Description |
|---|---|---|
| left | int | A left padding |
| top | int | A top padding |
| right | int | A right padding |
| bottom | int | A bottom padding |
Padding(HorizontalPad, VerticalPad)
Makes a new padding instance
Declaration
public Padding(HorizontalPad horizontalPad, VerticalPad verticalPad)
Parameters
| Name | Type | Description |
|---|---|---|
| horizontalPad | HorizontalPad | Horizontal padding |
| verticalPad | VerticalPad | Vertical padding |
Properties
Bottom
Gets the bottom padding
Property Value
int
Declaration
public readonly int Bottom { get; }
Left
Gets the left padding
Property Value
int
Declaration
public readonly int Left { get; }
Right
Gets the right padding
Property Value
int
Declaration
public readonly int Right { get; }
Top
Gets the top padding
Property Value
int
Declaration
public readonly int Top { get; }
Methods
Equals(object?)
Returns
bool
Declaration
public override bool Equals(object? obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | object |
Overrides
System.ValueType.Equals(object)
Equals(Padding)
Returns
bool
Declaration
public bool Equals(Padding other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | Padding |
GetHashCode()
Returns
int
Declaration
public override int GetHashCode()
Overrides
System.ValueType.GetHashCode()
ToString()
Generates a string containing padding values
Returns
string
Padding values in a string
Declaration
public override string ToString()
Overrides
System.ValueType.ToString()
Operators
operator ==(Padding, Padding)
Returns
bool
Declaration
public static bool operator ==(Padding left, Padding right)
Parameters
| Name | Type | Description |
|---|---|---|
| left | Padding | |
| right | Padding |