Click or drag to resize
Pdf Library for .NET

PointF Structure

Represents an ordered pair of single-precision floating-point coordinates (X, Y) in a 2D plane, used throughout the SelectPdf public API (for example by PdfDestination).
Inheritance Hierarchy
SystemObject
  SystemValueType
    SelectPdf.Universal.DrawingPointF

Namespace: SelectPdf.Universal.Drawing
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public struct PointF : IEquatable<PointF>

The PointF type exposes the following members.

Constructors
 NameDescription
Public methodPointFInitializes a new PointF with the specified coordinates.
Top
Properties
 NameDescription
Public propertyIsEmptyTrue if both X and Y are zero.
Public propertyXThe X coordinate.
Public propertyYThe Y coordinate.
Top
Methods
 NameDescription
Public methodEquals(Object)Indicates whether this point and the specified object have the same value.
(Overrides ValueTypeEquals(Object))
Public methodEquals(PointF)Indicates whether this point and the specified PointF have the same coordinates.
Public methodGetHashCodeReturns the hash code for this point.
(Overrides ValueTypeGetHashCode)
Public methodToStringReturns a string representation of this PointF (its X and Y coordinates).
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(PointF, PointF)Determines whether two PointF values have the same coordinates.
Public operatorStatic memberInequality(PointF, PointF)Determines whether two PointF values have different coordinates.
Top
Fields
 NameDescription
Public fieldStatic memberEmptyRepresents a PointF with X and Y set to zero.
Top
Example
// Create a point and read its coordinates.
SelectPdf.Universal.Drawing.PointF point =
    new SelectPdf.Universal.Drawing.PointF(50f, 120f);
float x = point.X;
float y = point.Y;
bool atOrigin = point.IsEmpty;
See Also