ArcSegment

Inheritance: PathSegment\ AvaloniaUI documentation: ArcSegment API

Constructors

Constructors Description
ArcSegment(point: Point, size: Size) Creates a ArcSegment widget.

Properties

Properties Description
rotationAngle(value: float) Sets the RotationAngle property.
sweepDirection(value: SweepDirection) Sets the SweepDirection property.
isLargeArc(value: bool) Sets the IsLargeArc property.
reference(value: ViewRef) Link a ViewRef to access the direct ArcSegment control instance.

Usages

ArcSegment(Point(200., 100.), Size(100., 50.))
    .rotationAngle(45.)
    .isLargeArc(true)
    .sweepDirection(SweepDirection.Clockwise)

Get access to the underlying ArcSegment

let pathSegmentRef = ViewRef<ArcSegment>()

ArcSegment(Point(200., 100.), Size(100., 50.))
    .rotationAngle(45.)
    .isLargeArc(true)
    .sweepDirection(SweepDirection.Clockwise)
    .reference(pathSegmentRef)