Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / BaseSheetSpanModel Class / GetEnumerator Method
Row index
Column index
Number of rows in cell span
Number of columns in cell span

In This Topic
    GetEnumerator Method (BaseSheetSpanModel)
    In This Topic
    Gets the next cell span in the collection.
    Public Overridable Function GetEnumerator( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer _
    ) As IEnumerator
    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)
    public virtual IEnumerator GetEnumerator( 
       int row,
       int column,
       int rowCount,
       int columnCount


    Row index
    Column index
    Number of rows in cell span
    Number of columns in cell span

    Return Value

    IEnumerator object for enumerating through the spans
    This method returns an enumerator for iterating to the next cell span in the collection after the specified span.
    This example returns the member type of the next span in the model.
    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()); 
    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()) 
    See Also