Summary
Defines a point that may be defined relative to a containing element.
- Namespace
- Avalonia
- Interfaces
-
- IEquatable
<RelativePoint>
- IEquatable
- 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 |
Initializes a new instance of the RelativePoint struct.
|
RelativePoint |
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 |
bool |
Checks if the
RelativePoint equals another object.
|
Equals |
bool |
Checks if the
RelativePoint equals another point.
|
GetHashCode |
int |
Gets a hashcode for a
RelativePoint .
|
Parse |
RelativePoint |
Parses a
RelativePoint string.
static
|
ToPixels |
Point |
Converts a
RelativePoint into pixels.
|
ToString |
string |
Returns a String representing this RelativePoint instance.
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |