Spread Windows Forms 7.0 Product Documentation
FlatColumnHeader Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetSkin Class : FlatColumnHeader Property


Glossary Item Box

Gets whether column headers are displayed in the sheet with a flat appearance.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property FlatColumnHeader As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetSkin
Dim value As Boolean
 
value = instance.FlatColumnHeader
C# 
public bool FlatColumnHeader {get;}

Property Value

Boolean: true if column headers are displayed as appearing flat; false otherwise

Remarks

This property determines if the sheet displays column headers that appear flat or that appear three-dimensional.

Example

This example shows the use of the property by returning all the properties for the skin.
C#Copy Code
FarPoint.Win.Spread.SheetSkin skin = new FarPoint.Win.Spread.SheetSkin("TestSkin", Color.White, Color.DarkGray, Color.Black,
Color.Blue, FarPoint.Win.Spread.GridLines.Both, Color.Blue, Color.Red, Color.White, Color.Black, Color.LightGray, Color.Gray,
false, false, true, true, true);
skin.Apply(fpSpread1);
listBox1.Items.Add(skin.BackColor.ToString());
listBox1.Items.Add(skin.CellBackColor.ToString());
listBox1.Items.Add(skin.CellForeColor.ToString());
listBox1.Items.Add(skin.EvenRowBackColor.ToString());
listBox1.Items.Add(skin.FlatColumnHeader.ToString());
listBox1.Items.Add(skin.FlatRowHeader.ToString());
listBox1.Items.Add(skin.GridLineColor.ToString()); 
listBox1.Items.Add(skin.GridLines.ToString());
listBox1.Items.Add(skin.HeaderBackColor.ToString());
listBox1.Items.Add(skin.HeaderFontBold.ToString()); 
listBox1.Items.Add(skin.HeaderForeColor.ToString());
listBox1.Items.Add(skin.Name.ToString());
listBox1.Items.Add(skin.OddRowBackColor.ToString()); 
listBox1.Items.Add(skin.SelectionBackColor.ToString());
listBox1.Items.Add(skin.SelectionForeColor.ToString());
listBox1.Items.Add(skin.ShowColumnHeader.ToString());
listBox1.Items.Add(skin.ShowRowHeader.ToString());
Visual BasicCopy Code
Dim skin As New FarPoint.Win.Spread.SheetSkin("TestSkin", Color.White, Color.DarkGray, Color.Black, Color.Blue, FarPoint.Win.Spread.GridLines.Both,
Color.Blue, Color.Red, Color.White, Color.Black, Color.LightGray, Color.Gray, False, False, True, True, True)
skin.Apply(FpSpread1)
ListBox1.Items.Add(skin.BackColor.ToString())
ListBox1.Items.Add(skin.CellBackColor.ToString())
ListBox1.Items.Add(skin.CellForeColor.ToString())
ListBox1.Items.Add(skin.EvenRowBackColor.ToString())
ListBox1.Items.Add(skin.FlatColumnHeader.ToString())
ListBox1.Items.Add(skin.FlatRowHeader.ToString())
ListBox1.Items.Add(skin.GridLineColor.ToString())
ListBox1.Items.Add(skin.GridLines.ToString())
ListBox1.Items.Add(skin.HeaderBackColor.ToString())
ListBox1.Items.Add(skin.HeaderFontBold.ToString())
ListBox1.Items.Add(skin.HeaderForeColor.ToString())
ListBox1.Items.Add(skin.Name.ToString())
ListBox1.Items.Add(skin.OddRowBackColor.ToString())
ListBox1.Items.Add(skin.SelectionBackColor.ToString())
ListBox1.Items.Add(skin.SelectionForeColor.ToString())
ListBox1.Items.Add(skin.ShowColumnHeader.ToString())
ListBox1.Items.Add(skin.ShowRowHeader.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

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