Struct VerticalMargin
Margin struct
Namespace: Terminaux.Base.Structures
Assembly: Terminaux.dll
Syntax
public struct VerticalMargin
Constructors
| Edit this page View SourceVerticalMargin(int, int, int)
Makes a new vertical margin instance
Declaration
public VerticalMargin(int top, int bottom, int height)
Parameters
Type | Name | Description |
---|---|---|
int | top | A top margin |
int | bottom | A bottom margin |
int | height | Height to subtract from to get margins |
VerticalMargin(VerticalPad, int)
Makes a new vertical margin instance
Declaration
public VerticalMargin(VerticalPad margins, int height)
Parameters
Type | Name | Description |
---|---|---|
VerticalPad | margins | Margins |
int | height | Height to subtract from to get margins |
Properties
| Edit this page View SourceHeight
Gets the final height with margins applied
Declaration
public readonly int Height { get; }
Property Value
Type | Description |
---|---|
int |
Margins
Gets the margin values
Declaration
public readonly VerticalPad Margins { get; }
Property Value
Type | Description |
---|---|
VerticalPad |
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(VerticalMargin)
Declaration
public bool Equals(VerticalMargin other)
Parameters
Type | Name | Description |
---|---|---|
VerticalMargin | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
System.ValueType.GetHashCode()
|
Edit this page
View Source
ToString()
Generates a string containing margin values
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Margin values in a string |
Overrides
System.ValueType.ToString()
Operators
| Edit this page View Sourceoperator ==(VerticalMargin, VerticalMargin)
Declaration
public static bool operator ==(VerticalMargin left, VerticalMargin right)
Parameters
Type | Name | Description |
---|---|---|
VerticalMargin | left | |
VerticalMargin | right |
Returns
Type | Description |
---|---|
bool |
operator !=(VerticalMargin, VerticalMargin)
Declaration
public static bool operator !=(VerticalMargin left, VerticalMargin right)
Parameters
Type | Name | Description |
---|---|---|
VerticalMargin | left | |
VerticalMargin | right |
Returns
Type | Description |
---|---|
bool |