• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Struct PointU

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

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
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

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

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
System.ValueType.Equals(System.Object)

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
System.ValueType.GetHashCode()

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
System.ValueType.ToString()

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

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.

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.

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.

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.