Class Line
Draws a straight line between two points.
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.Shapes
Assembly: OpenSilver.dll
Syntax
public class Line : Shape
Fields
| Improve this Doc View SourceX1Property
Identifies the X1 dependency property.
Declaration
public static readonly DependencyProperty X1Property
Field Value
Type | Description |
---|---|
DependencyProperty |
X2Property
Identifies the X2 dependency property.
Declaration
public static readonly DependencyProperty X2Property
Field Value
Type | Description |
---|---|
DependencyProperty |
Y1Property
Identifies the Y1 dependency property.
Declaration
public static readonly DependencyProperty Y1Property
Field Value
Type | Description |
---|---|
DependencyProperty |
Y2Property
Identifies the Y2 dependency property.
Declaration
public static readonly DependencyProperty Y2Property
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceX1
Gets or sets the x-coordinate of the Line start point. The default is 0.
Declaration
public double X1 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
X2
Gets or sets the x-coordinate of the Line end point. The default is 0.
Declaration
public double X2 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y1
Gets or sets the y-coordinate of the Line start point. The default is 0.
Declaration
public double Y1 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y2
Gets or sets the y-coordinate of the Line end point. The default is 0.
Declaration
public double Y2 { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceCreateDomElement(Object, out Object)
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parentRef | |
System.Object | domElementWhereToPlaceChildren |
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceMeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceRedraw()
Declaration
protected override void Redraw()