menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LineSegment - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LineSegment

    Represents a segment of a line chart.

    Inheritance
    System.Object
    ChartSegment
    CartesianSegment
    LineSegment
    StepLineSegment
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSegment.AnimatedValue
    ChartSegment.Fill
    ChartSegment.Index
    ChartSegment.Item
    ChartSegment.Opacity
    ChartSegment.PropertyChanged
    ChartSegment.Series
    ChartSegment.Stroke
    ChartSegment.StrokeDashArray
    ChartSegment.StrokeWidth
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class LineSegment : CartesianSegment, INotifyPropertyChanged, IMarkerDependentSegment

    Constructors

    LineSegment()

    Declaration
    public LineSegment()

    Properties

    X1

    Gets the x value for the starting point of the line segment.

    Declaration
    public float X1 { get; }
    Property Value
    Type
    System.Single

    X2

    Gets the x value for the ending point of the line segment.

    Declaration
    public float X2 { get; }
    Property Value
    Type
    System.Single

    Y1

    Gets the y value for the starting point of the line segment.

    Declaration
    public float Y1 { get; }
    Property Value
    Type
    System.Single

    Y2

    Gets the y value for the ending point of the line segment.

    Declaration
    public float Y2 { get; }
    Property Value
    Type
    System.Single

    Methods

    Draw(ICanvas)

    Declaration
    protected override void Draw(ICanvas canvas)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.ICanvas canvas
    Overrides
    ChartSegment.Draw(ICanvas)

    OnLayout()

    Declaration
    protected override void OnLayout()
    Overrides
    ChartSegment.OnLayout()

    Implements

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