Table of Contents

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

title string

Title text.

color Color

Color.

value double

Value of the pie slice.

owner ViewPie3D

Parent.

addToOwner bool

Add 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

bool

Remarks

Effective only when AllowUserInteraction is set true.

Color

Pie slice color.

public Color Color { get; set; }

Property Value

Color

Explode

Expand slice a bit further from center.

public bool Explode { get; set; }

Property Value

bool

ShowInLegendBox

Enlists the series title text in Legend box of the chart

public bool ShowInLegendBox { get; set; }

Property Value

bool

Title

Pie slice title.

public SeriesTitle3D Title { get; set; }

Property Value

SeriesTitle3D

TitleAlignment

Name alignment.

public AlignmentPie3DTitle TitleAlignment { get; set; }

Property Value

AlignmentPie3DTitle

Value

Pie slice value.

public double Value { get; set; }

Property Value

double

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true 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

x int

x-coordinate

y int

y-coordinate

useDIP bool

Use DIP instead of pixels as 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

s PieSlice

related object

Returns

LegendBoxObject
returns M:LightningChartLib.WinForms.Charting.Views.ViewPie3D.PieSlice.op_Implicit(LightningChartLib.WinForms.Charting.Views.ViewPie3D.PieSlice)~LightningChartLib.WinForms.Charting.Views.LegendBoxObject