RectangleGeometry

Inheritance: Geometry AvaloniaUI documentation: RectangleGeometry API

Constructors

ConstructorsDescription

RectangleGeometry(rect: Rect)

Creates a RectangleGeometry widget.

Properties

PropertiesDescription

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