Class LineGeometry
Represents the geometry of a line.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class LineGeometry : Geometry, IDependencyObject
Constructors
| Improve this Doc View SourceLineGeometry()
Initializes a new instance of the LineGeometry class that has no length.
Declaration
public LineGeometry()
LineGeometry(Point, Point)
Initializes a new instance of the LineGeometry class that has the specified start and end points.
Declaration
public LineGeometry(Point startPoint, Point endPoint)
Parameters
Type | Name | Description |
---|---|---|
Point | startPoint | |
Point | endPoint |
Fields
| Improve this Doc View SourceEndPointProperty
Identifies the EndPoint dependency property.
Declaration
public static readonly DependencyProperty EndPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StartPointProperty
Identifies the StartPoint dependency property.
Declaration
public static readonly DependencyProperty StartPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceEndPoint
Gets or sets the end point of a line.
Declaration
public Point EndPoint { get; set; }
Property Value
Type | Description |
---|---|
Point | The end point of the line. The default is a Point with value 0,0. |
StartPoint
Gets or sets the start point of the line.
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point | The start point of the line. The default is a Point with value 0,0. |