menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SplineSegment - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SplineSegment

    Represents chart Spline segment.

    Inheritance
    System.Object
    ChartSegment
    SplineSegment
    TrendlineSegment
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSegment.AlignHiLoSegment(Double, Double, Double, Double)
    ChartSegment.Interior
    ChartSegment.InteriorProperty
    ChartSegment.IsEmptySegmentInterior
    ChartSegment.Item
    ChartSegment.OnPropertyChanged(String)
    ChartSegment.PolygonPoints
    ChartSegment.PropertyChanged
    ChartSegment.Series
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    ChartSegment.SetData(Double[])
    ChartSegment.SetData(IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, Brush)
    ChartSegment.SetData(IList<Double>, IList<Double>, Brush, Int32)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(List<ChartPoint>)
    ChartSegment.SetData(List<Double>, IList<Double>, Double, Double)
    ChartSegment.SetData(List<Point>)
    ChartSegment.SetData(Point, Point, Point, Point, Boolean)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point, Boolean)
    ChartSegment.Stroke
    ChartSegment.StrokeDashArray
    ChartSegment.StrokeDashArrayProperty
    ChartSegment.StrokeProperty
    ChartSegment.StrokeThickness
    ChartSegment.StrokeThicknessProperty
    ChartSegment.XRange
    ChartSegment.YRange
    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
    ChartSegment.CreateVisual(Size)

    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

    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
    ChartSegment.GetRenderedVisual()

    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
    ChartSegment.OnSizeChanged(Size)

    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
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint)

    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
    ChartSegment.SetData(Point, Point, Point, Point)

    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
    ChartSegment.SetVisualBindings(Shape)

    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)

    Overrides
    ChartSegment.Update(IChartTransformer)

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    SplineSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved