Class PieSegment
Represents chart pie segment.
Implements
Inherited Members
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
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
System.Windows.UIElement | reurns UIElement |
Overrides
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
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
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) |