• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct PdfPoint

A 2-D point in PDF user-space units.

Implements
IEquatable<PdfPoint>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct PdfPoint : IEquatable<PdfPoint>

Constructors

PdfPoint(double, double)

Initializes a new PdfPoint with the specified coordinates.

Declaration
public PdfPoint(double x, double y)
Parameters
Type Name Description
double x
double y

Properties

X

Gets the X (horizontal) coordinate of the point.

Declaration
public double X { get; }
Property Value
Type Description
double

Y

Gets the Y (vertical) coordinate of the point.

Declaration
public double Y { get; }
Property Value
Type Description
double

Methods

Equals(PdfPoint)

Indicates whether this point equals another.

Declaration
public bool Equals(PdfPoint other)
Parameters
Type Name Description
PdfPoint other
Returns
Type Description
bool

Equals(object?)

Indicates whether this point equals another object.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

GetHashCode()

Returns a hash code for this point.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

ToString()

Returns a string representation of the point in the format (x, y).

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

operator ==(PdfPoint, PdfPoint)

Indicates whether two PdfPoint instances are equal.

Declaration
public static bool operator ==(PdfPoint a, PdfPoint b)
Parameters
Type Name Description
PdfPoint a
PdfPoint b
Returns
Type Description
bool

operator !=(PdfPoint, PdfPoint)

Indicates whether two PdfPoint instances are not equal.

Declaration
public static bool operator !=(PdfPoint a, PdfPoint b)
Parameters
Type Name Description
PdfPoint a
PdfPoint b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX