menu

WPF

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

    Show / Hide Table of Contents

    Class PieSegment

    Represents chart pie segment.

    Inheritance
    System.Object
    ChartSegment
    PieSegment
    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 PieSegment : ChartSegment, INotifyPropertyChanged
    Remarks

    Class instance is created automatically by WINRT Chart building system.

    Constructors

    PieSegment()

    Called when instance created for PieSegment.

    Declaration
    public PieSegment()

    PieSegment(Double, Double, PieSeries, Object)

    Called when instance created for PieSegment

    Declaration
    public PieSegment(double arcStartAngle, double arcEndAngle, PieSeries series, object item)
    Parameters
    Type Name Description
    System.Double arcStartAngle

    Used to specify segment start angle

    System.Double arcEndAngle

    Used to specify segment end angle

    PieSeries series

    Used to specify corresponding series

    System.Object item

    Used to specify corresponding item model

    PieSegment(Double, Double, Boolean, PieSeries, Object)

    Called when instance created for PieSegment with four arguments

    Declaration
    public PieSegment(double arcStartAngle, double arcEndAngle, bool isEmptyInterior, PieSeries series, object item)
    Parameters
    Type Name Description
    System.Double arcStartAngle

    Used to specify segment start angle

    System.Double arcEndAngle

    Used to specify segment end angle

    System.Boolean isEmptyInterior

    Used to indicate whether the segment having interior for empty value or not

    PieSeries series

    Used to specify corresponding series

    System.Object item

    Used to specify corresponding item model

    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

    Properties

    ActualEndAngle

    Gets or sets the end angle of this pie slice.

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

    ActualStartAngle

    Gets or sets the start angle of this pie slice.

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

    AngleOfSlice

    Gets the actual angle the PieSegment slice.

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

    EndAngle

    Gets the end angle of the PieSegment.

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

    Declaration
    public double StartAngle { get; }
    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 y 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

    returns 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

    See Also

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