For i As Integer = 0 To _rows.Count
If (_rows(i).LeftOffset > largestOffset) Then
largestOffset = _rows(i).LeftOffset
End If
Next i
For i As Integer = 0 To _rows.Count
这段代码永远不会到达第二个,我可以在 End If 上放一个断点,它会像它应该那样触发 _rows.Count ,但是如果第二个 for 或之后的任何断点永远不会到达。没有错误消息,程序没有冻结或任何东西,它的行为就像我做的一样:
For i As Integer = 0 To _rows.Count
If (_rows(i).LeftOffset > largestOffset) Then
largestOffset = _rows(i).LeftOffset
End If
Next i
Return
For i As Integer = 0 To _rows.Count