Table of Contents

Class Spacing

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

Four values in pixels, one for each side. Written as {left,top,right,bottom}, or as one number for all four sides.

public class Spacing
Inheritance
Spacing
Inherited Members

Constructors

Spacing()

Creates a spacing of zero on every side.

public Spacing()

Spacing(int, int, int, int)

Creates a spacing with the given left, top, right and bottom values, in pixels.

public Spacing(int left, int top, int right, int bottom)

Parameters

left int
top int
right int
bottom int

Spacing(string)

Parses {left,top,right,bottom}, or a single number applied to all four sides. Anything else leaves the values at zero.

public Spacing(string spacingString)

Parameters

spacingString string

Properties

Bottom

The bottom value, in pixels.

public int Bottom { get; set; }

Property Value

int

Left

The left value, in pixels.

public int Left { get; set; }

Property Value

int

Right

The right value, in pixels.

public int Right { get; set; }

Property Value

int

Top

The top value, in pixels.

public int Top { get; set; }

Property Value

int

Methods

ToString()

Formats the spacing as {left,top,right,bottom}.

public override string ToString()

Returns

string