代码如下:
int toprowindex = this.fps_ErrorInfo.GetViewportTopRow(0);
int bottomrowindex = this.fps_ErrorInfo.GetViewportBottomRow(0);
int leftcolindex = this.fps_ErrorInfo.GetViewportLeftColumn(0);
int rightcolindex = this.fps_ErrorInfo.GetViewportRightColumn(0);