Class DoughnutSegment
Class implementation for DoughnutSegment
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.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 |
---|
Windows.UI.Xaml.DependencyProperty |
ActualStartAngleProperty
The DependencyProperty for ActualStartAngle property.
Declaration
public static readonly DependencyProperty ActualStartAngleProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsExplodedProperty
The DependencyProperty for IsExploded property.
Declaration
public static readonly DependencyProperty IsExplodedProperty
Field Value
Type |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.Foundation.Size | size | Size of the panel |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | retuns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.Foundation.Size | size |
Overrides
SetVisualBindings(Shape)
Method Implementation for set Binding to ChartSegments properties.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.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) |