Struct VerticalPad
Vertical padding struct
Namespace
Syntax
public struct VerticalPad
Constructors
VerticalPad(int, int)
Makes a new padding instance
Declaration
public VerticalPad(int top, int bottom)
Parameters
| Name | Type | Description |
|---|---|---|
| top | int | A top padding |
| bottom | int | A bottom padding |
Properties
Bottom
Gets the bottom padding
Property Value
int
Declaration
public readonly int Bottom { 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(VerticalPad)
Returns
bool
Declaration
public bool Equals(VerticalPad other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | VerticalPad |
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 ==(VerticalPad, VerticalPad)
Returns
bool
Declaration
public static bool operator ==(VerticalPad left, VerticalPad right)
Parameters
| Name | Type | Description |
|---|---|---|
| left | VerticalPad | |
| right | VerticalPad |
operator !=(VerticalPad, VerticalPad)
Returns
bool
Declaration
public static bool operator !=(VerticalPad left, VerticalPad right)
Parameters
| Name | Type | Description |
|---|---|---|
| left | VerticalPad | |
| right | VerticalPad |