Table of Contents

Class Point

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

A point in pixels, written as {x,y} in a view file.

public class Point
Inheritance
Point
Inherited Members

Constructors

Point()

Creates the point (0, 0).

public Point()

Point(int, int)

Creates a point at the given position, in pixels.

public Point(int x, int y)

Parameters

x int
y int

Point(string)

Parses {x,y}. Anything that does not parse leaves the value at zero.

public Point(string pointString)

Parameters

pointString string

Properties

X

The horizontal position, in pixels.

[Required]
public int X { get; set; }

Property Value

int

Y

The vertical position, in pixels.

[Required]
public int Y { get; set; }

Property Value

int

Methods

ToString()

Formats the point as {x,y}.

public override string ToString()

Returns

string