Struct PointU
Represents an ordered pair of unit-based point x- and y-coordinates that defines a point in a two-dimensional plane.
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll
Syntax
public struct PointU
Constructors
PointU(Point)
Declaration
public PointU(Point pointDips)
Parameters
System.Drawing.Point
pointDips
|
PointU(PointF)
Declaration
public PointU(PointF pointDips)
Parameters
System.Drawing.PointF
pointDips
|
PointU(Unit, Unit)
Initializes a new instance of the PointU class with the specified coordinates.
Declaration
public PointU(Unit x, Unit y)
Parameters
Unit
x
The horizontal position of the point. |
Unit
y
The vertical position of the point. |
Fields
Empty
Represents a new instance of the PointU class with member data left uninitialized.
Declaration
public static readonly PointU Empty
Field Value
PointU
|
Properties
IsEmpty
Gets a value indicating whether this PointU is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean |
X
Gets or sets the x-coordinate of this PointU
Declaration
public Unit X { get; set; }
Property Value
Unit
The x-coordinate of this PointU. |
Y
Gets or sets the y-coordinate of this PointU
Declaration
public Unit Y { get; set; }
Property Value
Unit
The y-coordinate of this PointU. |
Methods
Equals(Object)
Specifies whether this PointU contains the same coordinates as the specified Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to test. |
Returns
System.Boolean
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
System.Int32
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.
Declaration
public void Offset(Unit dx, Unit dy)
Parameters
Unit
dx
A Unit value specifying the amount to offset in the horizontal direction. |
Unit
dy
A Unit value specifying the amount to offset in the vertical direction. |
ToString()
Converts this PointU to a human readable string.
Declaration
public override string ToString()
Returns
System.String
A string that represents this PointU. |
Overrides
ToString(CultureInfo)
Converts this PointU to a human readable string according to the System.Globalization.CultureInfo specified.
Declaration
public string ToString(CultureInfo culture)
Parameters
System.Globalization.CultureInfo
culture
A System.Globalization.CultureInfo that is used to format the string. |
Returns
System.String
A string that represents this PointU. |
Operators
Addition(PointU, SizeU)
Translates the PointU by the specified SizeU.
Declaration
public static PointU operator +(PointU pt, SizeU size)
Parameters
PointU
pt
The PointU to translate. |
SizeU
size
The SizeU that specifies the numbers to add to the x- and y-coordinates of the PointU. |
Returns
PointU
The translated PointU. |
Remarks
Equality(PointU, PointU)
Compares two PointU structures. The result specifies whether the values of the X and Y properties of the two PointU structures are equal.
Declaration
public static bool operator ==(PointU pt1, PointU pt2)
Parameters
PointU
pt1
A PointU to compare. |
PointU
pt2
A PointU to compare. |
Returns
System.Boolean
true if the X and Y values of the left and right PointU structures are equal; otherwise, false. |
Explicit(PointU to Point)
Converts the specified reporting PointU to a System.Drawing.Point in device-dependent pixels.
Declaration
public static explicit operator Point(PointU point)
Parameters
PointU
point
The PointU to convert. |
Returns
System.Drawing.Point
The System.Drawing.Point that is converted from the specified reporting Point structure. |
Explicit(PointU to PointF)
Converts the specified reporting PointU to a System.Drawing.PointF in device-dependent pixels.
Declaration
public static explicit operator PointF(PointU point)
Parameters
PointU
point
The PointU to convert. |
Returns
System.Drawing.PointF
The System.Drawing.PointF that is converted from the specified reporting Point structure. |
Inequality(PointU, PointU)
Determines whether the coordinates of the specified points are not equal.
Declaration
public static bool operator !=(PointU pt1, PointU pt2)
Parameters
PointU
pt1
A PointU to compare. |
PointU
pt2
A PointU to compare. |
Returns
System.Boolean
true to indicate the X and Y values of pt1 and pt2 are not equal; otherwise, false. |
Subtraction(PointU, SizeU)
Translates the PointU by the negative of a specified SizeU.
Declaration
public static PointU operator -(PointU pt, SizeU size)
Parameters
PointU
pt
The PointU to translate. |
SizeU
size
The SizeU that specifies the numbers to subtract from the x- and y-coordinates of the PointU. |
Returns
PointU
The translated PointU. |