Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.63 KB

combinedgeometry.md

File metadata and controls

34 lines (24 loc) · 1.63 KB

CombinedGeometry

Inheritance: Geometry
AvaloniaUI documentation: CombinedGeometry API

Constructors

Constructors Description
CombinedGeometry(geometry1: WidgetBuilder<'msg, #IFabGeometry>, geometry2: WidgetBuilder<'msg, #IFabGeometry>) Creates a CombinedGeometry widget.

Properties

Properties Description
geometryCombineMode(value: GeometryCombineMode) Sets the GeometryCombineMode property.
reference(value: ViewRef) Link a ViewRef to access the direct CombinedGeometry control instance.

Usages

CombinedGeometry(RectangleGeometry(Rect(10., 10., 100., 100.)), EllipseGeometry(50., 50.).center(Point(50., 50.)))
    .geometryCombineMode(GeometryCombineMode.Union)

Get access to the underlying CombinedGeometry

let geometryRef = ViewRef<CombinedGeometry>()

CombinedGeometry(RectangleGeometry(Rect(10., 10., 100., 100.)), EllipseGeometry(50., 50.).center(Point(50., 50.)))
    .geometryCombineMode(GeometryCombineMode.Union)
    .reference(geometryRef)