Spread Windows Forms 10.0 Product Documentation
Index2 Property (Column)
Example 


Gets the ending index for this range of columns.
Syntax
'Declaration
 
Public ReadOnly Property Index2 As Integer
'Usage
 
Dim instance As Column
Dim value As Integer
 
value = instance.Index2
public int Index2 {get;}

Property Value

Integer index of the ending column in the range
Remarks

This property is available at run time only.

Example
This example illustrates the use of this member by returning the indexes of the Column object.
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
col = fpSpread1.ActiveSheet.Columns[0];
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
col.Width = 120;
fpSpread1.ActiveSheet.Rows[0].Height = 60;
Dim col As FarPoint.Win.Spread.Column
Dim i, i1 As Integer
col = FpSpread1.ActiveSheet.Columns(0, 2)
i = col.Index
i1 = col.Index2
ListBox1.Items.AddRange(New Object() {i.ToString, i1.ToString})
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

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.