Class LineSegment
Represents chart line segment.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class LineSegment : ChartSegment, INotifyPropertyChanged
Remarks
Class instance is created automatically by WINRT Chart building system.
Constructors
LineSegment()
Called when instance created for LineSegment.
Declaration
public LineSegment()
LineSegment(Double, Double, Double, Double, AdornmentSeries, Object)
Called when instance created for LineSegment with following arguments
Declaration
public LineSegment(double x1, double y1, double x2, double y2, AdornmentSeries lineSeries, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x1 | Used to specify segment x1 |
| System.Double | y1 | Used to specify segment y1 |
| System.Double | x2 | Used to specify segment x2 |
| System.Double | y2 | Used to specify segment y2 |
| AdornmentSeries | lineSeries | Used to specify corresponding series |
| System.Object | item | Used to specify corresponding item model |
LineSegment(Double, Double, Double, Double, Object)
Called when instance created for LineSegment
Declaration
public LineSegment(double x1, double y1, double X2, double Y2, object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x1 | Used to specify segment x1 |
| System.Double | y1 | Used to specify segment y1 |
| System.Double | X2 | Used to specify segment x2 |
| System.Double | Y2 | Used to specify segment y2 |
| System.Object | item | Used to specify corresponding item model |
Properties
X1
Gets or sets the end point(y) of the line.
Declaration
public double X1 { get; set; }
Property Value
| Type |
|---|
| System.Double |
X1Data
Gets or sets the end data point x value, for this segment.
Declaration
public double X1Data { get; set; }
Property Value
| Type |
|---|
| System.Double |
X1Value
Gets or sets the start point x value.
Declaration
public double X1Value { 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 |
X2Value
Gets or sets the end point x value.
Declaration
public double X2Value { get; set; }
Property Value
| Type |
|---|
| System.Double |
XData
Gets or sets the start data point value, bind with x for this segment.
Declaration
public double XData { 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 |
Y1Data
Gets or sets the end data point y value, for this segment.
Declaration
public double Y1Data { get; set; }
Property Value
| Type |
|---|
| System.Double |
Y1Value
Gets or sets the start point y value.
Declaration
public double Y1Value { 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 |
Y2Value
Gets or sets the end point y value.
Declaration
public double Y2Value { get; set; }
Property Value
| Type |
|---|
| System.Double |
YData
Gets or sets the start data point value, bind with y for this segment.
Declaration
public double YData { 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 overriden 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 | retuns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
| Type | Description |
|---|---|
| System.Windows.UIElement | reurns 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 overriden by any derived class.
Declaration
public override void OnSizeChanged(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | 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 overriden by any derived class.
Declaration
public override void SetData(params double[] Values)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | Values |
Overrides
SetVisualBindings(Shape)
The element to be bind. Method implementation for set bindings.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Shapes.Shape | element | The Element To Be Bind |
Overrides
Update(IChartTransformer)
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 overriden by any derived class.
Declaration
public override void Update(IChartTransformer transformer)
Parameters
| Type | Name | Description |
|---|---|---|
| Syncfusion.UI.Xaml.Charts.IChartTransformer | transformer | Reresents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer) |