StructPointU
Represents an ordered pair of unit-based point x- and y-coordinates that defines a point in a two-dimensional plane.
Definition
Namespace:Telerik.Reporting.Drawing
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(PointUConverter))]
public struct PointU
Constructors
PointU(Point)
Initializes a new instance of the
Declaration
public PointU(Point pointDips)
Parameters
pointDips
Point
A Point whose coordinates to use.
PointU(PointF)
Initializes a new instance of the
Declaration
public PointU(PointF pointDips)
Parameters
pointDips
PointF
A PointF whose coordinates to use.
PointU(Unit, Unit)
Initializes a new instance of the PointU class with the specified coordinates.
Fields
Properties
Methods
Equals(object)
Specifies whether this PointU contains the same coordinates as the specified Object.
Declaration
public override bool Equals(object obj)
Parameters
obj
object
The object to test.
Returns
bool
This method returns true if obj is a PointU and has the same coordinates as this PointU.
Overrides
GetHashCode()
Returns a hash code for this PointU structure.
Declaration
public override int GetHashCode()
Returns
int
An integer value that specifies a hash value for this PointU structure.
Overrides
Offset(Unit, Unit)
Offsets this PointU structure by a specified amount in the x- and y-direction.
ToString()
Converts this PointU to a human readable string.
Declaration
public override string ToString()
Returns
string
A string that represents this PointU.
Overrides
ToString(CultureInfo)
Converts this PointU to a human readable string according to the CultureInfo specified.
Declaration
public string ToString(CultureInfo culture)
Parameters
culture
CultureInfo
A CultureInfo that is used to format the string.
Returns
string
A string that represents this PointU.
Operators
explicit operator Point(PointU)
Converts the specified reporting PointU to a Point in device-dependent pixels.
explicit operator PointF(PointU)
Converts the specified reporting PointU to a PointF in device-dependent pixels.
operator !=(PointU, PointU)
Determines whether the coordinates of the specified points are not equal.
operator +(PointU, SizeU)
Translates the PointU by the specified SizeU.
Declaration
public static PointU operator +(PointU pt, SizeU size)
Parameters
pt
The PointU to translate.
size
The SizeU that specifies the numbers to add to the x- and y-coordinates of the PointU.
Returns
The translated PointU.
Remarks
The op_Addition operator adds the Width of the specified size to the x-coordinate of the PointU and the Height to the y-coordinate of the PointU.
operator -(PointU, SizeU)
Translates the PointU by the negative of a specified SizeU.
Declaration
public static PointU operator -(PointU pt, SizeU size)
Parameters
pt
The PointU to translate.
size
The SizeU that specifies the numbers to subtract from the x- and y-coordinates of the PointU.
Returns
The translated PointU.
Remarks
The op_Subtraction operator subtracts the Width of the specified size from the x-coordinate of the PointU and the Height from the y-coordinate of the PointU.