menu

WinForms

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

    Show / Hide Table of Contents

    Class LineSegment

    Represents chart line segment.

    Inheritance
    System.Object
    ChartSegment
    LineSegment
    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)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    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)
    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.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
    ChartSegment.CreateVisual(Size)

    GetRenderedVisual()

    Gets the UIElement used for rendering this segment.

    Declaration
    public override UIElement GetRenderedVisual()
    Returns
    Type Description
    System.Windows.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
    System.Windows.Size size
    Overrides
    ChartSegment.OnSizeChanged(Size)

    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
    ChartSegment.SetData(Double[])

    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
    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

    See Also

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