Spread for ASP.NET 7.0 Product Documentation
GetEnumerator Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetSpanModel Class : GetEnumerator Method


row
Row index
column
Column index
rowCount
Number of rows in cell span
columnCount
Number of columns in cell span

Glossary Item Box

Gets the next cell span in the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetEnumerator( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) As IEnumerator
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetSpanModel
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim value As IEnumerator
 
value = instance.GetEnumerator(row, column, rowCount, columnCount)
C# 
public virtual IEnumerator GetEnumerator( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
Row index
column
Column index
rowCount
Number of rows in cell span
columnCount
Number of columns in cell span

Return Value

IEnumerator object for enumerating through the spans

Remarks

This method returns an enumerator for iterating to the next cell span in the collection after the specified span.

Example

This example returns the member type of the next span in the model.
C#Copy Code
FarPoint.Web.Spread.Model.BaseSheetSpanModel bss;
bss = (FarPoint.Web.Spread.Model.BaseSheetSpanModel)FpSpread1.ActiveSheetView.SpanModel;
bss.Add(0, 0, 2, 2);
bss.Add(1, 2, 2, 2);

Response.Write(bss.GetEnumerator(0, 0, 2, 2).MoveNext().GetType().MemberType.ToString()); 
Visual BasicCopy Code
Dim bss As FarPoint.Web.Spread.Model.BaseSheetSpanModel
bss = FpSpread1.ActiveSheetView.SpanModel
bss.Add(0, 0, 2, 2)
bss.Add(1, 2, 2, 2)

Response.Write(bss.GetEnumerator(0, 0, 2, 2).MoveNext().GetType().MemberType.ToString()) 

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.