ElementPosition Struct

A position in the border box of an element, in CSS pixels from its top-left corner.

public readonly struct ElementPosition : IEquatable<ElementPosition>
Implements

Constructors

NameDescription
ElementPosition(double, double)A position in the border box of an element, in CSS pixels from its top-left corner.

ElementPosition(double, double)

A position in the border box of an element, in CSS pixels from its top-left corner.

public ElementPosition(double X, double Y)

Parameters

X double
The horizontal position.
Y double
The vertical position.

Properties

NameDescription
XThe horizontal position.
YThe vertical position.

The horizontal position.

public double X { get; init; }

Property value

double

The vertical position.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double)
Equals(ElementPosition)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double)

public void Deconstruct(out double X, out double Y)

Parameters

X double
Y double

No documentation is available.

Equals overloads

Equals(ElementPosition)

public bool Equals(ElementPosition other)
Parameters
other ElementPosition
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ElementPosition, ElementPosition)
operator !=(ElementPosition, ElementPosition)

operator ==(ElementPosition, ElementPosition)

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

Parameters

left ElementPosition
right ElementPosition

Returns

bool

No documentation is available.

operator !=(ElementPosition, ElementPosition)

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

Parameters

left ElementPosition
right ElementPosition

Returns

bool

No documentation is available.