Spread Windows Forms 8.0 Product Documentation
TopBevel Property (PieSeries)
Example 


Gets or sets the top bevel.
Syntax
'Declaration
 
Public Property TopBevel As Bevel
'Usage
 
Dim instance As PieSeries
Dim value As Bevel
 
instance.TopBevel = value
 
value = instance.TopBevel
public Bevel TopBevel {get; set;}
Example
This example sets the TopBevel property.
FarPoint.Win.Chart.PieSeries series = new FarPoint.Win.Chart.PieSeries();

        private void Form1_Load(object sender, EventArgs e)
        {                       
            series.SeriesName = "Series 1";
            series.TopBevel = new FarPoint.Win.Chart.CircleBevel(12.0f, 12.0f);
            series.BottomBevel = new FarPoint.Win.Chart.CircleBevel(12.0f, 12.0f);
            series.Values.Add(1.0);
            series.Values.Add(2.0);
            series.Values.Add(4.0);
            series.Values.Add(8.0);

            FarPoint.Win.Chart.PiePlotArea plotArea = new FarPoint.Win.Chart.PiePlotArea();
            plotArea.Location = new PointF(0.2f, 0.2f);
            plotArea.Size = new SizeF(0.6f, 0.6f);
            plotArea.series.Add(series);

           
            FarPoint.Win.Chart.ChartModel model = new FarPoint.Win.Chart.ChartModel();
            model.PlotAreas.Add(plotArea);
            fpChart1.Model = model;            
        }

private void button1_Click(object sender, EventArgs e)
        {
    series.Values.Clear();        
         }

private void button2_Click(object sender, EventArgs e)
        {
    series.Values[3] = 1;
         }

private void button3_Click(object sender, EventArgs e)
        {
    double v;
    v = series.Values[3];
    textBox1.Text = v.ToString();
         }
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

PieSeries Class
PieSeries Members

 

 


Copyright © GrapeCity, inc. All rights reserved.