Struct
PointU

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:

cs-api-definition
[TypeConverter(typeof(PointUConverter))]
public struct PointU

Constructors

PointU(Point)

Initializes a new instance of the

Declaration

cs-api-definition
public PointU(Point pointDips)

Parameters

pointDips

Point

A Point whose coordinates to use.

PointU(PointF)

Initializes a new instance of the

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public PointU(Unit x, Unit y)

Parameters

x

Unit

The horizontal position of the point.

y

Unit

The vertical position of the point.

Fields

Empty

Represents a new instance of the PointU class with member data left uninitialized.

Declaration

cs-api-definition
public static readonly PointU Empty

Field Value

PointU

Properties

IsEmpty

Gets a value indicating whether this PointU is empty.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsEmpty { get; }

Property Value

bool

true if both X and Y are equal to zero; otherwise, false.

X

Gets or sets the x-coordinate of this PointU

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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 ValueType.Equals(object)

GetHashCode()

Returns a hash code for this PointU structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

An integer value that specifies a hash value for this PointU structure.

Overrides ValueType.GetHashCode()

Offset(Unit, Unit)

Offsets this PointU structure by a specified amount in the x- and y-direction.

Declaration

cs-api-definition
public void Offset(Unit dx, Unit dy)

Parameters

dx

Unit

A Unit value specifying the amount to offset in the horizontal direction.

dy

Unit

A Unit value specifying the amount to offset in the vertical direction.

ToString()

Converts this PointU to a human readable string.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this PointU.

Overrides ValueType.ToString()

ToString(CultureInfo)

Converts this PointU to a human readable string according to the CultureInfo specified.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public static explicit operator Point(PointU point)

Parameters

point

PointU

The PointU to convert.

Returns

Point

The Point that is converted from the specified reporting Point structure.

explicit operator PointF(PointU)

Converts the specified reporting PointU to a PointF in device-dependent pixels.

Declaration

cs-api-definition
public static explicit operator PointF(PointU point)

Parameters

point

PointU

The PointU to convert.

Returns

PointF

The PointF that is converted from the specified reporting Point structure.

operator !=(PointU, PointU)

Determines whether the coordinates of the specified points are not equal.

Declaration

cs-api-definition
public static bool operator !=(PointU pt1, PointU pt2)

Parameters

pt1

PointU

A PointU to compare.

pt2

PointU

A PointU to compare.

Returns

bool

true to indicate the X and Y values of pt1 and pt2 are not equal; otherwise, false.

operator +(PointU, SizeU)

Translates the PointU by the specified SizeU.

Declaration

cs-api-definition
public static PointU operator +(PointU pt, SizeU size)

Parameters

pt

PointU

The PointU to translate.

size

SizeU

The SizeU that specifies the numbers to add to the x- and y-coordinates of the PointU.

Returns

PointU

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

cs-api-definition
public static PointU operator -(PointU pt, SizeU size)

Parameters

pt

PointU

The PointU to translate.

size

SizeU

The SizeU that specifies the numbers to subtract from the x- and y-coordinates of the PointU.

Returns

PointU

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.

operator ==(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

cs-api-definition
public static bool operator ==(PointU pt1, PointU pt2)

Parameters

pt1

PointU

A PointU to compare.

pt2

PointU

A PointU to compare.

Returns

bool

true if the X and Y values of the left and right PointU structures are equal; otherwise, false.