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


Column specified
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
Column 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.
[NOTE:  There is no support for the Item property in C#.]
FpSpread1.ActiveSheetView.Columns[0].BackColor = Color.Teal;
FpSpread1.ActiveSheetView.Columns[1, 2].BackColor = Color.DarkSeaGreen;
FpSpread1.ActiveSheetView.Columns.Item(0).BackColor = Color.Teal
FpSpread1.ActiveSheetView.Columns.Item(1, 2).BackColor = Color.DarkSeaGreen
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Columns Class
Columns Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.