RelativePoint Struct

Summary

Defines a point that may be defined relative to a containing element.
Namespace
Avalonia
Interfaces
Base Types
  • object
  • ValueType
graph TD Base0["ValueType"]-->Type Base1["object"]-->Base0 Interface0["IEquatable<RelativePoint>"]-.->Type Type["RelativePoint"] class Type type-node

Syntax

public readonly struct RelativePoint : ValueType, IEquatable<RelativePoint>

Constructors

Name Summary
RelativePoint(double, double, RelativeUnit) Initializes a new instance of the RelativePoint struct.
RelativePoint(Point, RelativeUnit) Initializes a new instance of the RelativePoint struct.

Fields

Name Constant Value Summary
BottomRight
A point at the bottom right of the containing element.
static
Center
A point at the center of the containing element.
static
TopLeft
A point at the top left of the containing element.
static

Properties

Name Value Summary
Point Point
Gets the point.
Unit RelativeUnit
Gets the unit.

Methods

Name Value Summary
Equals(object) bool
Checks if the RelativePoint equals another object.
Equals(RelativePoint) bool
Checks if the RelativePoint equals another point.
GetHashCode() int
Gets a hashcode for a RelativePoint.
Parse(string) RelativePoint
Parses a RelativePoint string.
static
ToPixels(Size) Point
Converts a RelativePoint into pixels.

Operators

Name Value Summary
operator !=(RelativePoint, RelativePoint) bool
operator ==(RelativePoint, RelativePoint) bool