C# Class MonoGameUi.Border

Struct zur Verwaltung von Rahmen-Informationen für Margins und Paddings.
Show file Open project: OctoAwesome/monogameui Class Usage Examples

Public Properties

Property Type Description
Bottom int
Left int
Right int
Top int

Public Methods

Method Description
All ( int value ) : Border

Erstellt einen Border mit gleichem Abstand auf allen vier Seiten.

All ( int horizontal, int vertical ) : Border

Erstellt einen Border auf Basis der Angaben für horizontale und vertikale Werte.

All ( int left, int top, int right, int bottom ) : Border

Erstellt eine Border-Instanz mit den angegebenen Initialwerten.

Border ( int left, int top, int right, int bottom )

Erstellt eine Border-Instanz mit den angegebenen Initialwerten.

Equals ( object obj ) : bool

Überprüft, ob die aktuelle Border-Instanz gleich der gegebenen ist.

GetHashCode ( ) : int

Gibt einen Hashwert zurück

ToString ( ) : string

Wandelt die aktuelle Border-Instanz in einen string um.

Method Details

All() public static method

Erstellt einen Border mit gleichem Abstand auf allen vier Seiten.
public static All ( int value ) : Border
value int Wert für alle vier Seiten.
return Border

All() public static method

Erstellt einen Border auf Basis der Angaben für horizontale und vertikale Werte.
public static All ( int horizontal, int vertical ) : Border
horizontal int Abstand für horizontale Seiten (links, rechts)
vertical int Abstand für vertikale Seiten (oben, unten)
return Border

All() public static method

Erstellt eine Border-Instanz mit den angegebenen Initialwerten.
public static All ( int left, int top, int right, int bottom ) : Border
left int Abstand links
top int Abstand oben
right int Abstand rechts
bottom int Abstand unten
return Border

Border() public method

Erstellt eine Border-Instanz mit den angegebenen Initialwerten.
public Border ( int left, int top, int right, int bottom )
left int Abstand links
top int Abstand oben
right int Abstand rechts
bottom int Abstand unten

Equals() public method

Überprüft, ob die aktuelle Border-Instanz gleich der gegebenen ist.
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Gibt einen Hashwert zurück
public GetHashCode ( ) : int
return int

ToString() public method

Wandelt die aktuelle Border-Instanz in einen string um.
public ToString ( ) : string
return string

Property Details

Bottom public property

Untere Seite
public int Bottom
return int

Left public property

Linke Seite
public int Left
return int

Right public property

Rechte Seite
public int Right
return int

Top public property

Obere Seite
public int Top
return int