RelativePoint Structure

Defines a point that may be defined relative to a containing element.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct RelativePoint : IEquatable<RelativePoint>
Inheritance
Object    ValueType    RelativePoint
Implements
IEquatableRelativePoint

Properties

Point Gets the point.
Unit Gets the unit.

Methods

Equals(Object) Checks if the RelativePoint equals another object.
(Overrides ValueTypeEquals(Object))
Equals(RelativePoint) Checks if the RelativePoint equals another point.
GetHashCode Gets a hashcode for a RelativePoint.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Parse(String) Parses a RelativePoint string.
ToPixels(Rect) Converts a RelativePoint into pixels.
ToPixels(Size) Converts a RelativePoint into pixels.
ToString Returns a String representing this RelativePoint instance.
(Overrides ValueTypeToString)

Operators

Equality(RelativePoint, RelativePoint) Checks for equality between two RelativePoints.
Inequality(RelativePoint, RelativePoint) Checks for inequality between two RelativePoints.

Fields

BottomRight A point at the bottom right of the containing element.
Center A point at the center of the containing element.
TopLeft A point at the top left of the containing element.

See Also