RelativeRect Structure

Defines a rectangle 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 RelativeRect : IEquatable<RelativeRect>
Inheritance
Object    ValueType    RelativeRect
Implements
IEquatableRelativeRect

Properties

Rect Gets the rectangle.
Unit Gets the unit of the rectangle.

Methods

Equals(Object) Checks if the RelativeRect equals another object.
(Overrides ValueTypeEquals(Object))
Equals(RelativeRect) Checks if the RelativeRect equals another rectangle.
GetHashCode Gets a hashcode for a RelativeRect.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Parse(String) Parses a RelativeRect string.
ToPixels(Rect) Converts a RelativeRect into pixels.
ToPixels(Size) Converts a RelativeRect into pixels.
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Equality(RelativeRect, RelativeRect) Checks for equality between two RelativeRects.
Inequality(RelativeRect, RelativeRect) Checks for inequality between two RelativeRects.

Fields

Fill A rectangle that represents 100% of an area.

See Also