Skip to main content

TransformedBounds Struct

Definition

Assembly:Avalonia.Base
Package:Avalonia

Holds information about the bounds of a control, together with a transform and a clip.

public struct TransformedBounds

Inheritance: ValueType -> TransformedBounds

Implements: IEquatable<TransformedBounds>

Constructors

NameDescription
TransformedBoundsInitializes a new instance of the Avalonia.VisualTree.TransformedBounds struct.

TransformedBounds Constructor

Initializes a new instance of the Avalonia.VisualTree.TransformedBounds struct.

public TransformedBounds(Avalonia.Rect bounds, Avalonia.Rect clip, Avalonia.Matrix transform)

Parameters

bounds Avalonia.Rect

The control's bounds.

clip Avalonia.Rect

The control's clip rectangle.

transform Avalonia.Matrix

The control's transform.

Methods

NameDescription
ContainsNo summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Contains Method

public bool Contains(Avalonia.Point point)

Parameters

point Avalonia.Point

Returns

bool

Equals overloads

Equals Method

public bool Equals(Avalonia.VisualTree.TransformedBounds other)
Parameters

other Avalonia.VisualTree.TransformedBounds

Returns

bool

Equals Method

public bool Equals(object obj)
Parameters

obj object

Returns

bool

GetHashCode Method

public int GetHashCode()

Returns

int

ToString Method

public string ToString()

Returns

string

Properties

NameDescription
BoundsGets the control's bounds in its local coordinate space.
ClipGets the control's clip rectangle in global coordinate space.
TransformGets the transform from local to global coordinate space.

Bounds Property

Gets the control's bounds in its local coordinate space.

public Avalonia.Rect Bounds { get; set; }

Clip Property

Gets the control's clip rectangle in global coordinate space.

public Avalonia.Rect Clip { get; set; }

Transform Property

Gets the transform from local to global coordinate space.

public Avalonia.Matrix Transform { get; set; }