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


column
Starting column index
column2
Ending column index

Glossary Item Box

Gets the specified range of columns.

Syntax

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

Parameters

column
Starting column index
column2
Ending column index

Return Value

Column object for the specified range of columns

Exceptions

ExceptionDescription
System.IndexOutOfRangeException Specified column index is out of range. It must less than the column count or -1 for all.

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, 2);
c.BackColor = Color.Yellow;
Visual BasicCopy Code
Dim c As FarPoint.Win.Spread.Column
c = FpSpread1.ActiveSheet.Columns.Get(0, 2)
c.BackColor = Color.Yellow

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.