Here are the examples of the csharp api class BrightIdeasSoftware.ListViewPrinterBase.GetRowCount(System.Windows.Forms.ListView) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: MapViewer
Source File: ListViewPrinter.cs
Source File: ListViewPrinter.cs
protected void CalculatePrintParameters(ListView lv) { // If we are in the middl/n ..... /n //View Source file for more details /n }
0
2. Example
Project: MapViewer
Source File: ListViewPrinter.cs
Source File: ListViewPrinter.cs
protected bool PrintList(Graphics g, ListView lv) { this.currentOrigin = this.listBounds.Location; if (this.rowIndex == 0 || this.IsListHeaderOnEachPage) this.PrintListHeader(g, lv); this.PrintRows(g, lv); // We continue to print pages when we have more rows or more columns remaining return (this.rowIndex < this.GetRowCount(lv) || this.indexRightColumn + 1 < this.GetColumnCount()); }
0
3. Example
Project: MapViewer
Source File: ListViewPrinter.cs
Source File: ListViewPrinter.cs
protected void PrintRows(Graphics g, ListView lv) { while (this.rowIndex < this.GetRowCount(lv)) { // Will this row fit before the end of page? float rowHeight = this.CalculateRowHeight(g, lv, this.rowIndex); if (this.currentOrigin.Y + rowHeight > this.listBounds.Bottom) break; // If we are printing group and there is a group begining at the current position, // print it so long as the group header and at least one following row will fit on the page if (this.IsShowingGroups) { int groupIndex = this.GetGroupAtPosition(this.rowIndex); if (groupIndex != -1) { float groupHeaderHeight = this.GroupHeaderFormat.CalculateHeight(g); if (this.currentOrigin.Y + groupHeaderHeight + rowHeight < this.listBounds.Bottom) { this.PrintGroupHeader(g, lv, groupIndex); } else { this.currentOrigin.Y = this.listBounds.Bottom; break; } } } this.PrintRow(g, lv, this.rowIndex, rowHeight); this.rowIndex++; } }