Table of Contents

Class LineGeometry

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents the geometry of a line.

public class LineGeometry : Geometry, INotifyPropertyChanged
Inheritance
LineGeometry
Implements
Inherited Members
Extension Methods

Constructors

LineGeometry()

Initializes a new instance of the LineGeometry class.

public LineGeometry()

LineGeometry(Point, Point)

Initializes a new instance of the LineGeometry class.

public LineGeometry(Point startPoint, Point endPoint)

Parameters

startPoint Point

The start point.

endPoint Point

The end point.

Fields

EndPointProperty

Defines the EndPoint property.

public static readonly StyledProperty<Point> EndPointProperty

Field Value

StyledProperty<Point>

StartPointProperty

Defines the StartPoint property.

public static readonly StyledProperty<Point> StartPointProperty

Field Value

StyledProperty<Point>

Properties

EndPoint

Gets or sets the end point of the line.

public Point EndPoint { get; set; }

Property Value

Point

StartPoint

Gets or sets the start point of the line.

public Point StartPoint { get; set; }

Property Value

Point

Methods

Clone()

Clones the geometry.

public override Geometry Clone()

Returns

Geometry

A cloned geometry.