[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Point2L

Struct Point2L

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

Structure specifing a point with integer X and Y coordinates.

public struct Point2L : IEquatable<Point2L>
Implements
System.IEquatable<T><Point2L>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

Point2L(Point)

Initializes a new instance of the Point2L struct.

public Point2L(Point p)

Parameters

p System.Drawing.Point

Point2L(int, int)

Initializes a new instance of the Point2L struct.

public Point2L(int x, int y)

Parameters

x int
y int

Fields

Empty

An empty point.

public static readonly Point2L Empty

Field Value

Point2L

SizeInBytes

The size of the Point2L type, in bytes.

public const int SizeInBytes = 8

Field Value

int

X

The X coordinate of the point.

public int X

Field Value

int

Y

The Y coordinate of the point.

public int Y

Field Value

int

Properties

IsEmpty

Determines if all components of Point2L are equal to zero.

public bool IsEmpty { get; }

Property Value

bool

Methods

Equals(Point2L)

Indicates whether this instance and a specified object are equal.

public bool Equals(Point2L other)

Parameters

other Point2L

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

Offset(Point2L, Point2L)

Offsets the point by the specified amount.

public static Point2L Offset(Point2L point1, Point2L point2)

Parameters

point1 Point2L
point2 Point2L

Returns

Point2L

Offset(Point2L, Size2L)

Offsets the point by the specified amount.

public static Point2L Offset(Point2L pt, Size2L sz)

Parameters

pt Point2L
sz Size2L

Returns

Point2L

Offset(Point2L, int, int)

Offsets the point by the specified amount.

public static Point2L Offset(Point2L pt, int dx, int dy)

Parameters

pt Point2L
dx int
dy int

Returns

Point2L

Offset(Point2L)

Offsets the point by the specified amount.

public void Offset(Point2L pt)

Parameters

pt Point2L

Offset(Size2L)

Offsets the point by the specified amount.

public void Offset(Size2L sz)

Parameters

sz Size2L

Offset(int, int)

Offsets the point by the specified amount.

public void Offset(int dx, int dy)

Parameters

dx int
dy int

ToPoint()

Converts Point2L to System.Drawing.Point.

public Point ToPoint()

Returns

System.Drawing.Point

ToPoint2D()

Converts Point2L to Point2D.

public Point2D ToPoint2D()

Returns

Point2D

ToPoint2F()

Converts Point2L to Point2F.

public Point2F ToPoint2F()

Returns

Point2F

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

Operators

operator +(Point2L, Point2L)

Returns the result of addition of point2 to point1.

public static Point2L operator +(Point2L point1, Point2L point2)

Parameters

point1 Point2L
point2 Point2L

Returns

Point2L

operator +(Point2L, Size2L)

Returns the result of addition of size to point.

public static Point2L operator +(Point2L p, Size2L sz)

Parameters

p Point2L
sz Size2L

Returns

Point2L

operator ==(Point2L, Point2L)

Determines if the specified values are equal.

public static bool operator ==(Point2L left, Point2L right)

Parameters

left Point2L
right Point2L

Returns

bool

explicit operator Point(Point2L)

Performs an explicit conversion from Point2L to System.Drawing.Point.

public static explicit operator Point(Point2L value)

Parameters

value Point2L

Returns

System.Drawing.Point

explicit operator Point2L(Point)

Performs an explicit conversion from System.Drawing.Point to Point2L.

public static explicit operator Point2L(Point p)

Parameters

p System.Drawing.Point

Returns

Point2L

operator !=(Point2L, Point2L)

Determines if the specified values are not equal.

public static bool operator !=(Point2L left, Point2L right)

Parameters

left Point2L
right Point2L

Returns

bool

operator -(Point2L, Point2L)

Returns the result of substruction of point2 from point1.

public static Point2L operator -(Point2L point1, Point2L point2)

Parameters

point1 Point2L
point2 Point2L

Returns

Point2L

operator -(Point2L, Size2L)

Returns the result of substruction of size from point.

public static Point2L operator -(Point2L point, Size2L sz)

Parameters

point Point2L
sz Size2L

Returns

Point2L