RelativePoint Struct

Summary

Defines a point that may be defined relative to a containing element.
Namespace
Avalonia
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<RelativePoint>"] 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.
ToString() string
Returns a String representing this RelativePoint instance.

Operators

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