Spread Windows Forms 6.0 Product Documentation
DataSetting Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Chart Namespace > SpreadChart Class : DataSetting Property


Glossary Item Box

Gets or sets the data setting of SpreadChart.

Syntax

Visual Basic (Declaration) 
Public Property DataSetting As ChartDataSetting
Visual Basic (Usage)Copy Code
Dim instance As SpreadChart
Dim value As ChartDataSetting
 
instance.DataSetting = value
 
value = instance.DataSetting
C# 
public ChartDataSetting DataSetting {get; set;}

Property Value

The data setting.

Remarks

The ShowHiddenData option indicates whether the hidden data in the sheet is used to generate series data. When this value is false, the hidden data is ignored. The EmptyValueStyle property indicates how to use the empty value and what the value will be converted to.

Example

This example sets the DataSetting property.
C#Copy Code
SpreadChart chart = this.fpSpread1_Sheet1.Charts[0];
ChartDataSetting dataSetting = new ChartDataSetting(EmptyValueStyle.Zero, true);
chart.DataSetting = dataSetting;
//chart.DataSetting.EmptyValueStyle = EmptyValueStyle.Zero;
//chart.DataSetting.ShowHiddenData = true;
Visual BasicCopy Code
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart(GetType(FarPoint.Win.Chart.BarSeries))
Dim dataSetting As New FarPoint.Win.Spread.Chart.ChartDataSetting(FarPoint.Win.Spread.Chart.EmptyValueStyle.Zero, True)
chart.DataSetting = dataSetting
FpSpread1.Sheets(0).AddChart(chart, 0, 0)
'chart.DataSetting.EmptyValueStyle = FarPoint.Win.Spread.Chart.EmptyValueStyle.Zero
'chart.DataSetting.ShowHiddenData = True

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.