Spread Windows Forms 10.0 Product Documentation
Item(Int32) Property
Example 


Integer column index
Gets a new column for the specified column.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal column As Integer _
) As Column
'Usage
 
Dim instance As Columns
Dim column As Integer
Dim value As Column
 
value = instance.Item(column)
public Column Item( 
   int column
) {get;}

Parameters

column
Integer column index

Property Value

Column object for the specified column
Exceptions
ExceptionDescription
System.IndexOutOfRangeException 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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Columns Class
Columns Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.