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
Constructors
| Improve this Doc View SourceLineGeometry()
Declaration
public LineGeometry()
LineGeometry(Point, Point)
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. The default is a Point with value 0,0.
Declaration
public Point EndPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
StartPoint
Gets or sets the start point of the line. The default is a Point with value 0,0.
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourceDefineInCanvas(Path, Object, Double, Double, Double, Double, Double, Double, Size)
Declaration
protected override void DefineInCanvas(Path path, object canvasDomElement, double horizontalMultiplicator, double verticalMultiplicator, double xOffsetToApplyBeforeMultiplication, double yOffsetToApplyBeforeMultiplication, double xOffsetToApplyAfterMultiplication, double yOffsetToApplyAfterMultiplication, Size shapeActualSize)
Parameters
Type | Name | Description |
---|---|---|
Path | path | |
System.Object | canvasDomElement | |
System.Double | horizontalMultiplicator | |
System.Double | verticalMultiplicator | |
System.Double | xOffsetToApplyBeforeMultiplication | |
System.Double | yOffsetToApplyBeforeMultiplication | |
System.Double | xOffsetToApplyAfterMultiplication | |
System.Double | yOffsetToApplyAfterMultiplication | |
Size | shapeActualSize |
Overrides
| Improve this Doc View SourceGetMinMaxXY(ref Double, ref Double, ref Double, ref Double)
Declaration
protected override void GetMinMaxXY(ref double minX, ref double maxX, ref double minY, ref double maxY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minX | |
System.Double | maxX | |
System.Double | minY | |
System.Double | maxY |