Spread for ASP.NET 9.0 Product Documentation
Item(Int32,Int32) Property
Example 


Beginning of range of columns
End of range of columns specified
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
Beginning of range of columns
column2
End of range of columns specified

Property Value

Column object
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.
ListBox1.Items.Add(FpSpread1.ActiveSheetView.Columns.Parent.ToString());
ListBox1.Items.Add(FpSpread1.ActiveSheetView.Columns.Parent.ToString())
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Columns Class
Columns Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.