Spread Windows Forms 7.0 Product Documentation
Get(Int32) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Columns Class > Get Method : Get(Int32) Method


column
Index of column

Glossary Item Box

Gets the specified column.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Get( _
   ByVal column As Integer _
) As Column
Visual Basic (Usage)Copy Code
Dim instance As Columns
Dim column As Integer
Dim value As Column
 
value = instance.Get(column)
C# 
public Column Get( 
   int column
)

Parameters

column
Index of column

Return Value

Column object for the specified column

Exceptions

ExceptionDescription
System.IndexOutOfRangeException Specified column index is out of range. It must be less than -1 or greater than or equal to the column count.

Example

This example changes the background color of the specified column.
C#Copy Code
FarPoint.Win.Spread.Column c
c = fpSpread1.ActiveSheet.Columns.Get(0);
c.BackColor = Color.Yellow;
Visual BasicCopy Code
Dim c As FarPoint.Win.Spread.Column
c = FpSpread1.ActiveSheet.Columns.Get(0)
c.BackColor = Color.Yellow

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.