menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LineSegment - UWP 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.Interior
    ChartSegment.InteriorProperty
    ChartSegment.Item
    ChartSegment.OnPropertyChanged(String)
    ChartSegment.PropertyChanged
    ChartSegment.Series
    ChartSegment.SetVisualBindings(Shape)
    ChartSegment.StrokeThickness
    ChartSegment.StrokeThicknessProperty
    Namespace: Syncfusion.UI.Xaml.SmithChart
    Assembly: Syncfusion.SfSmithChart.UWP.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
    Windows.Foundation.Size size

    Size of the panel

    Returns
    Type Description
    Windows.UI.Xaml.UIElement

    The created Windows.UI.Xaml.UIElement.

    Overrides
    ChartSegment.CreateVisual(Size)

    GetRenderedVisual()

    Gets the UIElement used for rendering this segment.

    Declaration
    public override UIElement GetRenderedVisual()
    Returns
    Type Description
    Windows.UI.Xaml.UIElement

    Returns the 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 overridden by any derived class.

    Declaration
    public override void OnSizeChanged(Size size)
    Parameters
    Type Name Description
    Windows.Foundation.Size size

    The 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 overridden by any derived class.

    Declaration
    public override sealed void SetData(params double[] values)
    Parameters
    Type Name Description
    System.Double[] values

    The Values

    Overrides
    ChartSegment.SetData(Double[])

    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
    Windows.Foundation.Point point1

    The Frist Point

    Windows.Foundation.Point point2

    The Second Point

    Overrides
    ChartSegment.Update(Point, Point)

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

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