Gets an enumerator for iterating to the next cell span in the collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Overridable Function GetEnumerator() As IEnumerator |
Return Value
IEnumerator object for enumerating to the next span in the collection
Example
This example moves the models enumerator to the next instance.
C# | Copy Code |
---|
FarPoint.Win.Spread.Model.DefaultSheetSpanModel defspanModel = new FarPoint.Win.Spread.Model.DefaultSheetSpanModel();
System.Collections.IEnumerator se;
fpSpread1.ActiveSheet.Models.Span = defspanModel;
defspanModel.Add(0, 0, 2, 2);
defspanModel.Add(4, 0, 2, 2);
se = defspanModel.GetEnumerator();
listBox1.Items.AddRange(new Object[] {se.MoveNext().ToString(), se.Current.ToString()}); |
Visual Basic | Copy Code |
---|
Dim defspanModel As New FarPoint.Win.Spread.Model.DefaultSheetSpanModel()
Dim se As System.Collections.IEnumerator
FpSpread1.ActiveSheet.Models.Span = defspanModel
defspanModel.Add(0, 0, 2, 2)
defspanModel.Add(4, 0, 2, 2)
se = defspanModel.GetEnumerator
ListBox1.Items.AddRange(New Object() {se.MoveNext().ToString(), se.Current().ToString()}) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also