Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1013 Bytes

rectanglegeometry.md

File metadata and controls

31 lines (21 loc) · 1013 Bytes

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)