Class LineSegment
Represents chart line segment.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.SmithChart
Assembly: Syncfusion.SfSmithChart.WPF.dll
Syntax
public class LineSegment : ChartSegment, INotifyPropertyChanged
Constructors
LineSegment()
Initializes a new instance of the LineSegment class.
Declaration
public LineSegment()
LineSegment(Double, Double, Double, Double, LineSeries, Object)
Initializes a new instance of the LineSegment class.
Declaration
public LineSegment(double x1, double y1, double x2, double y2, LineSeries lineSeries, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x1 | The x1 value |
| System.Double | y1 | The y1 value |
| System.Double | x2 | The x2 value |
| System.Double | y2 | The y2 value |
| LineSeries | lineSeries | The line series |
| System.Object | item | The item |
Properties
X1
Gets or sets the end point(y) of the line.
Declaration
public double X1 { get; set; }
Property Value
| Type |
|---|
| System.Double |
X2
Gets or sets the end point(x) of the line.
Declaration
public double X2 { get; set; }
Property Value
| Type |
|---|
| System.Double |
Y1
Gets or sets the start point(y) of the line.
Declaration
public double Y1 { get; set; }
Property Value
| Type |
|---|
| System.Double |
Y2
Gets or sets the end point(y) of the line.
Declaration
public double Y2 { get; set; }
Property Value
| Type |
|---|
| System.Double |
Methods
CreateVisual(Size)
Used for creating UIElement for rendering this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override UIElement CreateVisual(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | size | Size of the panel |
Returns
| Type | Description |
|---|---|
| System.Windows.UIElement | The created System.Windows.UIElement. |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
| Type | Description |
|---|---|
| System.Windows.UIElement | Returns the UIElement |
Overrides
OnSizeChanged(Size)
Called whenever the segment's size changed. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override void OnSizeChanged(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | size | The Size |
Overrides
SetData(Double[])
Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override sealed void SetData(params double[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | values | The Values |
Overrides
Update(Point, Point)
Updates the segments based on its data point value. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override void Update(Point point1, Point point2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Point | point1 | The Frist Point |
| System.Windows.Point | point2 | The Second Point |