LineGeometry

Inheritance: Geometry AvaloniaUI documentation: LineGeometry API

Constructors

ConstructorsDescription

LineGeometry(startPoint: Point, endPoint: Point)

Creates a LineGeometry widget.

Properties

PropertiesDescription

reference(value: ViewRef)

Link a ViewRef to access the direct LineGeometry control instance.

Usages

LineGeometry(Point(10., 20.), Point(100., 130.))

Get access to the underlying LineGeometry

let geometryRef = ViewRef<LineGeometry>()

LineGeometry(Point(10., 20.), Point(100., 130.))
    .reference(geometryRef)

Last updated