Point class

Point class

Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.

The Point type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the Point structure with the specified coordinates.
initInitializes a new instance of the Point structure from the Size structure.
initInitializes a new instance of the Point structure using coordinates specified by an integer value.
initConstructs a new instance of Point

Properties

PropertyDescription
emptyGets a new instance of the Point structure that has Point.x and Point.y values set to zero.
is_emptyGets a value indicating whether this Point is empty.
xGets or sets the x-coordinate of this Point.
yGets or sets the y-coordinate of this Point.

Methods

MethodDescription
offsetTranslates this Point by the specified Point.
offsetTranslates this Point by the specified amount.
addAdds the specified Size to the specified Point.
subtractReturns the result of subtracting specified Size from the specified Point.
ceilingConverts the specified PointF to a Point by rounding the values of the PointF to the next higher integer values.
roundConverts the specified PointF to a Point object by rounding the Point values to the nearest integer.
truncateConverts the specified PointF to a Point by truncating the values of the Point.

See Also