Summary
Defines a rectangle that may be defined relative to a containing element.
- Namespace
- Avalonia
- Interfaces
-
- IEquatable
<RelativeRect>
- IEquatable
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IEquatable<RelativeRect>"]
Type["RelativeRect"]
class Type type-node
Syntax
public readonly struct RelativeRect : ValueType, IEquatable<RelativeRect>
Constructors
Name | Summary |
---|---|
RelativeRect |
Initializes a new instance of the RelativeRect structure.
|
RelativeRect |
Initializes a new instance of the RelativeRect structure.
|
RelativeRect |
Initializes a new instance of the RelativeRect structure.
|
RelativeRect |
Initializes a new instance of the RelativeRect structure.
|
RelativeRect |
Initializes a new instance of the RelativeRect structure.
|
Fields
Name | Constant Value | Summary |
---|---|---|
Fill |
A rectangle that represents 100% of an area.
static
|
Properties
Name | Value | Summary |
---|---|---|
Rect | Rect |
Gets the rectangle.
|
Unit | RelativeUnit |
Gets the unit of the rectangle.
|
Methods
Name | Value | Summary |
---|---|---|
Equals |
bool |
Checks if the
RelativeRect equals another object.
|
Equals |
bool |
Checks if the
RelativeRect equals another rectangle.
|
GetHashCode |
int |
Gets a hashcode for a
RelativeRect .
|
Parse |
RelativeRect |
Parses a
RelativeRect string.
static
|
ToPixels |
Rect |
Converts a
RelativeRect into pixels.
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |