FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
bool b, b1;
b = dsc.Contains(FarPoint.Win.Spread.DefaultStyleCollection.DataAreaDefault);
b1 = dsc.Contains(FarPoint.Win.Spread.DefaultStyleCollection.HeaderDefault);
listBox1.Items.Add(b.ToString());
listBox1.Items.Add(b1.ToString());
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection()
Dim b, b1 As Boolean
b = dsc.Contains(dsc.DataAreaDefault)
b1 = dsc.Contains(dsc.HeaderDefault)
ListBox1.Items.Add(b.ToString())
ListBox1.Items.Add(b1.ToString())