Struct HorizontalMargin
Horizontal margin struct
Namespace: Terminaux.Base.Structures
Assembly: Terminaux.dll
Syntax
public struct HorizontalMargin
Constructors
| Edit this page View SourceHorizontalMargin(int, int, int)
Makes a new horizontal margin instance
Declaration
public HorizontalMargin(int left, int right, int width)
Parameters
Type | Name | Description |
---|---|---|
int | left | A left margin |
int | right | A right margin |
int | width | Width to subtract from to get margins |
HorizontalMargin(HorizontalPad, int)
Makes a new horizontal margin instance
Declaration
public HorizontalMargin(HorizontalPad margins, int width)
Parameters
Type | Name | Description |
---|---|---|
HorizontalPad | margins | Margins |
int | width | Width to subtract from to get margins |
Properties
| Edit this page View SourceMargins
Gets the margin values
Declaration
public readonly HorizontalPad Margins { get; }
Property Value
Type | Description |
---|---|
HorizontalPad |
Width
Gets the final width with margins applied
Declaration
public readonly int Width { 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(HorizontalMargin)
Declaration
public bool Equals(HorizontalMargin other)
Parameters
Type | Name | Description |
---|---|---|
HorizontalMargin | 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 ==(HorizontalMargin, HorizontalMargin)
Declaration
public static bool operator ==(HorizontalMargin left, HorizontalMargin right)
Parameters
Type | Name | Description |
---|---|---|
HorizontalMargin | left | |
HorizontalMargin | right |
Returns
Type | Description |
---|---|
bool |
operator !=(HorizontalMargin, HorizontalMargin)
Declaration
public static bool operator !=(HorizontalMargin left, HorizontalMargin right)
Parameters
Type | Name | Description |
---|---|---|
HorizontalMargin | left | |
HorizontalMargin | right |
Returns
Type | Description |
---|---|
bool |