PdfSharp-GDI  1.31.7289
PdfSharp.Drawing.XPoint Struct Reference

Represents a pair of floating point x- and y-coordinates that defines a point in a two-dimensional plane. More...

Inheritance diagram for PdfSharp.Drawing.XPoint:

Public Member Functions

 XPoint (double x, double y)
 Initializes a new instance of the XPoint class with the specified coordinates. More...
 
 XPoint (System.Drawing.Point point)
 Initializes a new instance of the XPoint class with the specified point. More...
 
 XPoint (PointF point)
 Initializes a new instance of the XPoint class with the specified point. More...
 
override bool Equals (object o)
 Indicates whether this instance and a specified object are equal. More...
 
bool Equals (XPoint value)
 Indicates whether this instance and a specified point are equal. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
PointF ToPointF ()
 Converts this XPoint to a System.Drawing.Point. More...
 
override string ToString ()
 Converts this XPoint to a human readable string. More...
 
string ToString (IFormatProvider provider)
 Converts this XPoint to a human readable string. More...
 
string IFormattable. ToString (string format, IFormatProvider provider)
 Converts this XPoint to a human readable string. More...
 
void Offset (double offsetX, double offsetY)
 Offsets the x and y value of this point. More...
 

Static Public Member Functions

static bool operator== (XPoint point1, XPoint point2)
 Determines whether two points are equal. More...
 
static bool operator!= (XPoint point1, XPoint point2)
 Determines whether two points are not equal. More...
 
static bool Equals (XPoint point1, XPoint point2)
 Indicates whether the specified points are equal. More...
 
static XPoint Parse (string source)
 Parses the point from a string. More...
 
static XPoint[] ParsePoints (string value)
 Parses an array of points from a string. More...
 
static XPoint operator+ (XPoint point, XVector vector)
 Adds a point and a vector. More...
 
static XPoint operator+ (XPoint point, XSize size)
 Adds a point and a size. More...
 
static XPoint Add (XPoint point, XVector vector)
 Adds a point and a vector. More...
 
static XPoint operator- (XPoint point, XVector vector)
 Subtracts a vector from a point. More...
 
static XPoint Subtract (XPoint point, XVector vector)
 Subtracts a vector from a point. More...
 
static XVector operator- (XPoint point1, XPoint point2)
 Subtracts a point from a point. More...
 
static XPoint operator- (XPoint point, XSize size)
 Subtracts a size from a point. More...
 
static XVector Subtract (XPoint point1, XPoint point2)
 Subtracts a point from a point. More...
 
static XPoint operator* (XPoint point, XMatrix matrix)
 Multiplies a point with a matrix. More...
 
static XPoint Multiply (XPoint point, XMatrix matrix)
 Multiplies a point with a matrix. More...
 
static XPoint operator* (XPoint point, double value)
 Multiplies a point with a scalar value. More...
 
static XPoint operator* (double value, XPoint point)
 Multiplies a point with a scalar value. More...
 
static XPoint operator/ (XPoint point, double value)
 Divides a point by a scalar value. More...
 
static operator XSize (XPoint point)
 Performs an explicit conversion from XPoint to XSize. More...
 
static operator XVector (XPoint point)
 Performs an explicit conversion from XPoint to XVector. More...
 

Static Public Attributes

static readonly XPoint Empty = new XPoint()
 For convergence with WPF use new XPoint(), not XPoint.Empty More...
 

Properties

double X [get, set]
 Gets the x-coordinate of this XPoint. More...
 
double Y [get, set]
 Gets the x-coordinate of this XPoint. More...
 
bool IsEmpty [get]
 Indicates whether this XPoint is empty. More...
 

Detailed Description

Represents a pair of floating point x- and y-coordinates that defines a point in a two-dimensional plane.

Constructor & Destructor Documentation

◆ XPoint() [1/3]

PdfSharp.Drawing.XPoint.XPoint ( double  x,
double  y 
)

Initializes a new instance of the XPoint class with the specified coordinates.

◆ XPoint() [2/3]

PdfSharp.Drawing.XPoint.XPoint ( System.Drawing.Point  point)

Initializes a new instance of the XPoint class with the specified point.

◆ XPoint() [3/3]

PdfSharp.Drawing.XPoint.XPoint ( PointF  point)

Initializes a new instance of the XPoint class with the specified point.

Member Function Documentation

◆ Add()

static XPoint PdfSharp.Drawing.XPoint.Add ( XPoint  point,
XVector  vector 
)
static

Adds a point and a vector.

◆ Equals() [1/3]

override bool PdfSharp.Drawing.XPoint.Equals ( object  o)

Indicates whether this instance and a specified object are equal.

◆ Equals() [2/3]

static bool PdfSharp.Drawing.XPoint.Equals ( XPoint  point1,
XPoint  point2 
)
static

Indicates whether the specified points are equal.

◆ Equals() [3/3]

bool PdfSharp.Drawing.XPoint.Equals ( XPoint  value)

Indicates whether this instance and a specified point are equal.

◆ GetHashCode()

override int PdfSharp.Drawing.XPoint.GetHashCode ( )

Returns the hash code for this instance.

◆ Multiply()

static XPoint PdfSharp.Drawing.XPoint.Multiply ( XPoint  point,
XMatrix  matrix 
)
static

Multiplies a point with a matrix.

◆ Offset()

void PdfSharp.Drawing.XPoint.Offset ( double  offsetX,
double  offsetY 
)

Offsets the x and y value of this point.

◆ operator XSize()

static PdfSharp.Drawing.XPoint.operator XSize ( XPoint  point)
explicitstatic

Performs an explicit conversion from XPoint to XSize.

◆ operator XVector()

static PdfSharp.Drawing.XPoint.operator XVector ( XPoint  point)
explicitstatic

Performs an explicit conversion from XPoint to XVector.

◆ operator!=()

static bool PdfSharp.Drawing.XPoint.operator!= ( XPoint  point1,
XPoint  point2 
)
static

Determines whether two points are not equal.

◆ operator*() [1/3]

static XPoint PdfSharp.Drawing.XPoint.operator* ( double  value,
XPoint  point 
)
static

Multiplies a point with a scalar value.

◆ operator*() [2/3]

static XPoint PdfSharp.Drawing.XPoint.operator* ( XPoint  point,
double  value 
)
static

Multiplies a point with a scalar value.

◆ operator*() [3/3]

static XPoint PdfSharp.Drawing.XPoint.operator* ( XPoint  point,
XMatrix  matrix 
)
static

Multiplies a point with a matrix.

◆ operator+() [1/2]

static XPoint PdfSharp.Drawing.XPoint.operator+ ( XPoint  point,
XSize  size 
)
static

Adds a point and a size.

◆ operator+() [2/2]

static XPoint PdfSharp.Drawing.XPoint.operator+ ( XPoint  point,
XVector  vector 
)
static

Adds a point and a vector.

◆ operator-() [1/3]

static XPoint PdfSharp.Drawing.XPoint.operator- ( XPoint  point,
XSize  size 
)
static

Subtracts a size from a point.

◆ operator-() [2/3]

static XPoint PdfSharp.Drawing.XPoint.operator- ( XPoint  point,
XVector  vector 
)
static

Subtracts a vector from a point.

◆ operator-() [3/3]

static XVector PdfSharp.Drawing.XPoint.operator- ( XPoint  point1,
XPoint  point2 
)
static

Subtracts a point from a point.

◆ operator/()

static XPoint PdfSharp.Drawing.XPoint.operator/ ( XPoint  point,
double  value 
)
static

Divides a point by a scalar value.

◆ operator==()

static bool PdfSharp.Drawing.XPoint.operator== ( XPoint  point1,
XPoint  point2 
)
static

Determines whether two points are equal.

◆ Parse()

static XPoint PdfSharp.Drawing.XPoint.Parse ( string  source)
static

Parses the point from a string.

◆ ParsePoints()

static XPoint [] PdfSharp.Drawing.XPoint.ParsePoints ( string  value)
static

Parses an array of points from a string.

◆ Subtract() [1/2]

static XPoint PdfSharp.Drawing.XPoint.Subtract ( XPoint  point,
XVector  vector 
)
static

Subtracts a vector from a point.

◆ Subtract() [2/2]

static XVector PdfSharp.Drawing.XPoint.Subtract ( XPoint  point1,
XPoint  point2 
)
static

Subtracts a point from a point.

◆ ToPointF()

PointF PdfSharp.Drawing.XPoint.ToPointF ( )

Converts this XPoint to a System.Drawing.Point.

◆ ToString() [1/3]

override string PdfSharp.Drawing.XPoint.ToString ( )

Converts this XPoint to a human readable string.

◆ ToString() [2/3]

string PdfSharp.Drawing.XPoint.ToString ( IFormatProvider  provider)

Converts this XPoint to a human readable string.

◆ ToString() [3/3]

string IFormattable. PdfSharp.Drawing.XPoint.ToString ( string  format,
IFormatProvider  provider 
)

Converts this XPoint to a human readable string.

Member Data Documentation

◆ Empty

readonly XPoint PdfSharp.Drawing.XPoint.Empty = new XPoint()
static

For convergence with WPF use new XPoint(), not XPoint.Empty

Property Documentation

◆ IsEmpty

bool PdfSharp.Drawing.XPoint.IsEmpty
get

Indicates whether this XPoint is empty.

◆ X

double PdfSharp.Drawing.XPoint.X
getset

Gets the x-coordinate of this XPoint.

◆ Y

double PdfSharp.Drawing.XPoint.Y
getset

Gets the x-coordinate of this XPoint.


The documentation for this struct was generated from the following file: