FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > DefaultSheetSpanModel クラス > GetEnumerator メソッド : GetEnumerator(Int32,Int32,Int32,Int32) メソッド |
'Declaration Public Overloads Overrides Function GetEnumerator( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal rowCount As Integer, _ ByVal columnCount As Integer _ ) As IEnumerator
'使用法 Dim instance As DefaultSheetSpanModel 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 override IEnumerator GetEnumerator( int row, int column, int rowCount, int columnCount )
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(4, 0, 2, 2); listBox1.Items.AddRange(new Object[] {se.MoveNext().ToString(), se.Current.ToString()});
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(4, 0, 2, 2) ListBox1.Items.AddRange(New Object() {se.MoveNext().ToString(), se.Current().ToString()})