menu

WPF

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

    Show / Hide Table of Contents

    Class DoughnutSegment

    Class implementation for DoughnutSegment

    Inheritance
    System.Object
    ChartSegment
    DoughnutSegment
    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(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)
    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 DoughnutSegment : ChartSegment, INotifyPropertyChanged

    Constructors

    DoughnutSegment()

    Called when instance created for DoughnutSegment.

    Declaration
    public DoughnutSegment()

    DoughnutSegment(Double, Double, DoughnutSeries)

    Called when instance created for DoughnutSegment

    Declaration
    public DoughnutSegment(double startAngle, double endAngle, DoughnutSeries series)
    Parameters
    Type Name Description
    System.Double startAngle
    System.Double endAngle
    DoughnutSeries series

    Fields

    ActualEndAngleProperty

    The DependencyProperty for ActualEndAngle property.

    Declaration
    public static readonly DependencyProperty ActualEndAngleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ActualStartAngleProperty

    The DependencyProperty for ActualStartAngle property.

    Declaration
    public static readonly DependencyProperty ActualStartAngleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsExplodedProperty

    The DependencyProperty for IsExploded property.

    Declaration
    public static readonly DependencyProperty IsExplodedProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TrackBorderColorProperty

    Using a DependencyProperty as the backing store for brushTrackBorderColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty TrackBorderColorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TrackBorderWidthProperty

    Using a DependencyProperty as the backing store for TrackBorderWidth. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty TrackBorderWidthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    ActualEndAngle

    Gets or sets the end angle of this segment slice.

    Declaration
    public double ActualEndAngle { get; set; }
    Property Value
    Type
    System.Double

    ActualStartAngle

    Gets or sets the start angle of this segment slice.

    Declaration
    public double ActualStartAngle { get; set; }
    Property Value
    Type
    System.Double

    AngleOfSlice

    Gets the actual angle the DoughnutSegment slice.

    Declaration
    public double AngleOfSlice { get; }
    Property Value
    Type
    System.Double

    EndAngle

    Gets the end angle of the DoughnutSegment.

    Declaration
    public double EndAngle { get; }
    Property Value
    Type
    System.Double

    IsExploded

    Gets or sets a value indicating whether this segment can be exploded or not.

    Declaration
    public bool IsExploded { get; set; }
    Property Value
    Type
    System.Boolean

    StartAngle

    Gets the start angle of the DoughnutSegment.

    Declaration
    public double StartAngle { get; }
    Property Value
    Type
    System.Double

    TrackBorderColor

    Gets or sets the track area border color.

    Declaration
    public Brush TrackBorderColor { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    TrackBorderWidth

    Gets or sets the track area border width.

    Declaration
    public double TrackBorderWidth { get; set; }
    Property Value
    Type
    System.Double

    TrackColor

    Gets or sets the track area color.

    Declaration
    public Brush TrackColor { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    TrackOpacity

    Gets or sets the opacity for the track area.

    Declaration
    public double TrackOpacity { get; set; }
    Property Value
    Type
    System.Double

    XData

    Gets the data point value, bind with x for this segment.

    Declaration
    public double XData { get; }
    Property Value
    Type
    System.Double

    YData

    Gets the data point value, bind with x for this segment.

    Declaration
    public double YData { get; }
    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
    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 overridden by any derived class.

    Declaration
    public override void OnSizeChanged(Size size)
    Parameters
    Type Name Description
    System.Windows.Size size
    Overrides
    ChartSegment.OnSizeChanged(Size)

    SetVisualBindings(Shape)

    Method Implementation for set Binding to ChartSegments properties.

    Declaration
    protected override void SetVisualBindings(Shape element)
    Parameters
    Type Name Description
    System.Windows.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 overridden by any derived class.

    Declaration
    public override void Update(IChartTransformer transformer)
    Parameters
    Type Name Description
    Syncfusion.UI.Xaml.Charts.IChartTransformer transformer

    Represents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer)

    Overrides
    ChartSegment.Update(IChartTransformer)

    Implements

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