RectangleGeometry

Inheritance: Geometry AvaloniaUI documentation: RectangleGeometry API

Constructors

Constructors
Description

RectangleGeometry(rect: Rect)

Creates a RectangleGeometry widget.

Properties

Properties
Description

reference(value: ViewRef)

Link a ViewRef to access the direct RectangleGeometry control instance.

Usages

RectangleGeometry(Rect(10., 20., 150., 100.))

Get access to the underlying RectangleGeometry

let geometryRef = ViewRef<RectangleGeometry>()

RectangleGeometry(Rect(10., 20., 150., 100.))
    .reference(geometryRef)

Last updated