Class SplineSegment
Represents chart Spline segment.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class SplineSegment : ChartSegment, INotifyPropertyChanged
Remarks
Class instance is created automatically by WINRT Chart building system.
Constructors
SplineSegment()
Called when instance created for SplineSegment.
Declaration
public SplineSegment()
SplineSegment(ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartSeriesBase)
Called when instance created for SplineSegment.
Declaration
public SplineSegment(ChartPoint point1, ChartPoint point2, ChartPoint point3, ChartPoint point4, ChartSeriesBase series)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | Specifies start point |
ChartPoint | point2 | Specifies start control point |
ChartPoint | point3 | Specifies end control point |
ChartPoint | point4 | Specifies end point |
ChartSeriesBase | series | Specifies corresponding SplineSeries |
SplineSegment(ChartPoint, ChartPoint, ChartPoint, ChartPoint, SplineSeries)
Called when instance created for SplineSegment
Declaration
public SplineSegment(ChartPoint point1, ChartPoint point2, ChartPoint point3, ChartPoint point4, SplineSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | Specifies start point |
ChartPoint | point2 | Specifies start control point |
ChartPoint | point3 | Specifies end control point |
ChartPoint | point4 | Specifies end point |
SplineSeries | series | Specifies corresponding SplineSeries |
SplineSegment(Point, Point, Point, Point, ChartSeriesBase)
Called when instance created for SplineSegment.
Declaration
public SplineSegment(Point point1, Point point2, Point point3, Point point4, ChartSeriesBase series)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Point | point1 | |
Windows.Foundation.Point | point2 | |
Windows.Foundation.Point | point3 | |
Windows.Foundation.Point | point4 | |
ChartSeriesBase | series |
Remarks
Marked as obsolete.
SplineSegment(Point, Point, Point, Point, SplineSeries)
Called when instance created for SplineSegment.
Declaration
public SplineSegment(Point point1, Point point2, Point point3, Point point4, SplineSeries series)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Point | point1 | Specifies start point. |
Windows.Foundation.Point | point2 | Specifies start control point. |
Windows.Foundation.Point | point3 | Specifies end control point. |
Windows.Foundation.Point | point4 | Specifies end point. |
SplineSeries | series | Specifies corresponding SplineSeries. |
Properties
Data
Gets or sets the segment geometry for this segment.
Declaration
public PathGeometry Data { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.PathGeometry |
P1
Gets or sets the start point of the bezier segment.
Declaration
public Point P1 { get; set; }
Property Value
Type |
---|
Windows.Foundation.Point |
P2
Gets or sets the end point for the bezier segment.
Declaration
public Point P2 { get; set; }
Property Value
Type |
---|
Windows.Foundation.Point |
Q1
Gets or sets the first control point for the bezier segment.
Declaration
public Point Q1 { get; set; }
Property Value
Type |
---|
Windows.Foundation.Point |
Q2
Gets or sets the second control point for the bezier segment.
Declaration
public Point Q2 { get; set; }
Property Value
Type |
---|
Windows.Foundation.Point |
X1
Gets or sets the x1 point of this segment.
Declaration
public double X1 { get; set; }
Property Value
Type |
---|
System.Double |
X1Data
Gets or sets x1 value.
Declaration
public double X1Data { get; set; }
Property Value
Type |
---|
System.Double |
X2
Gets or sets the x2 point of this segment.
Declaration
public double X2 { get; set; }
Property Value
Type |
---|
System.Double |
XData
Gets or sets the 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 y1 point of this segment.
Declaration
public double Y1 { get; set; }
Property Value
Type |
---|
System.Double |
Y1Data
Gets or sets the y1 value.
Declaration
public double Y1Data { get; set; }
Property Value
Type |
---|
System.Double |
Y2
Gets or sets the y2 point of this segment.
Declaration
public double Y2 { get; set; }
Property Value
Type |
---|
System.Double |
YData
Gets or sets the 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 |
---|---|---|
Windows.Foundation.Size | size | Size of the panel |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | retuns UIElement |
Overrides
GetRange(Double, Double, Double, Double)
Returns Y range for corresponding SplineSegment
Declaration
protected DoubleRange GetRange(double y1, double y2, double y3, double y4)
Parameters
Type | Name | Description |
---|---|---|
System.Double | y1 | |
System.Double | y2 | |
System.Double | y3 | |
System.Double | y4 |
Returns
Type | Description |
---|---|
DoubleRange |
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.Foundation.Size | size |
Overrides
SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint)
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(ChartPoint point1, ChartPoint point2, ChartPoint point3, ChartPoint point4)
Parameters
Type | Name | Description |
---|---|---|
ChartPoint | point1 | |
ChartPoint | point2 | |
ChartPoint | point3 | |
ChartPoint | point4 |
Overrides
SetData(Point, Point, Point, Point)
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(Point point1, Point point2, Point point3, Point point4)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Point | point1 | |
Windows.Foundation.Point | point2 | |
Windows.Foundation.Point | point3 | |
Windows.Foundation.Point | point4 |
Overrides
SetVisualBindings(Shape)
Method Implementation for set Binding to ChartSegments properties.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Shapes.Shape | element |
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) |