Spread Windows Forms 11.0 Product Documentation
Item(Int32,Int32) Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Columns Class > Item Property : Item(Int32,Int32) Property
Starting column index for the range
Ending column index for the range
Gets a new column for the specified range of columns.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal column As Integer, _
   ByVal column2 As Integer _
) As Column
'Usage
 
Dim instance As Columns
Dim column As Integer
Dim column2 As Integer
Dim value As Column
 
value = instance.Item(column, column2)
public Column Item( 
   int column,
   int column2
) {get;}

Parameters

column
Starting column index for the range
column2
Ending column index for the range

Property Value

Column object for the specified range of columns
Exceptions
ExceptionDescription
Specified column index is out of range. It must be less than the column count or -1 for all.
Example
This example specifies the background color of several columns based on the Item property.
fpSpread1.ActiveSheet.Columns[0].BackColor = Color.Teal;

fpSpread1.ActiveSheet.Columns[1, 2].BackColor = Color.DarkSeaGreen;
fpSpread1.ActiveSheet.Columns.Item(0).BackColor = Color.Teal

fpSpread1.ActiveSheet.Columns.Item(1, 2).BackColor = Color.DarkSeaGreen
See Also

Reference

Columns Class
Columns Members
Overload List