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


Glossary Item Box

Gets a Columns object for the columns in the column header.

Syntax

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

Property Value

Columns object containing the collection of columns in the header

Remarks

This property is available at run time only.

Example

This example sets the background color of all the columns in the column header.
C#Copy Code
FarPoint.Win.Spread.ColumnHeader ch;
int i;
ch = fpSpread1.ActiveSheet.ColumnHeader;
ch.RowCount = 3;
for (i = 0; i <= ch.Columns.Count - 1; i ++)
{
ch.Columns[i].BackColor = Color.Teal;
}
Visual BasicCopy Code
Dim ch As FarPoint.Win.Spread.ColumnHeader
Dim i As Integer
ch = FpSpread1.ActiveSheet.ColumnHeader
ch.RowCount = 3
For i = 0 To ch.Columns.Count - 1
ch.Columns(i).BackColor = Color.Teal
Next

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.