Class PieSlice
- Namespace
- LightningChartLib.WinForms.Charting.Views.ViewPie3D
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Pie slice.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PieSlice : HighlightingItemBase, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
PieSlice
- Implements
- Inherited Members
Constructors
PieSlice()
Constructor.
public PieSlice()
PieSlice(string, Color, double, ViewPie3D, bool)
Constructor.
public PieSlice(string title, Color color, double value, ViewPie3D owner, bool addToOwner)
Parameters
titlestringTitle text.
colorColorColor.
valuedoubleValue of the pie slice.
ownerViewPie3DParent.
addToOwnerboolAdd to owner view's Values list.
Properties
BlinkOnOver
Blinks the series color when user interactive device is over it. If this is false, only simple highlight will be shown.
public bool BlinkOnOver { get; set; }
Property Value
Remarks
Effective only when AllowUserInteraction is set true.
Color
Pie slice color.
public Color Color { get; set; }
Property Value
Explode
Expand slice a bit further from center.
public bool Explode { get; set; }
Property Value
ShowInLegendBox
Enlists the series title text in Legend box of the chart
public bool ShowInLegendBox { get; set; }
Property Value
Title
Pie slice title.
public SeriesTitle3D Title { get; set; }
Property Value
TitleAlignment
Name alignment.
public AlignmentPie3DTitle TitleAlignment { get; set; }
Property Value
Value
Pie slice value.
public double Value { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
IsPositionOver(int, int, bool)
Is position over item.
public override bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
Returns
- bool
true if position is over item, false otherwise
ToString()
Convert class description to string.
public override string ToString()
Returns
- string
Class description as a string.
Operators
implicit operator LegendBoxObject(PieSlice)
Get item as LegendBoxMouseObject.
public static implicit operator LegendBoxObject(PieSlice s)
Parameters
sPieSlicerelated object
Returns
- LegendBoxObject
returns M:LightningChartLib.WinForms.Charting.Views.ViewPie3D.PieSlice.op_Implicit(LightningChartLib.WinForms.Charting.Views.ViewPie3D.PieSlice)~LightningChartLib.WinForms.Charting.Views.LegendBoxObject