Visual Basic (Declaration) | |
---|---|
Public Overloads ReadOnly Property Item( _ 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.Item(column, column2) |
Parameters
- column
- Starting column index for the range
- column2
- Ending column index for the range
Property Value
Column object for the specified range of columnsException | Description |
---|---|
System.IndexOutOfRangeException | Specified column index is out of range. It must less than the column count or -1 for all. |
This example specifies the background color of several columns based on the Item property.
C# | Copy Code |
---|---|
fpSpread1.ActiveSheet.Columns[0].BackColor = Color.Teal; fpSpread1.ActiveSheet.Columns[1, 2].BackColor = Color.DarkSeaGreen; |
Visual Basic | Copy Code |
---|---|
FpSpread1.ActiveSheet.Columns.Item(0).BackColor = Color.Teal FpSpread1.ActiveSheet.Columns.Item(1, 2).BackColor = Color.DarkSeaGreen |
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