Here are the examples of the csharp api class BrightIdeasSoftware.BaseRenderer.CalculateCheckBoxSize(System.Drawing.Graphics) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
8 Examples
0
1. Example
Project: MapViewer
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual Size CalculatePrimaryCheckBoxSize(Graphics g) { if (!this.ListView.CheckBoxes || !this.ColumnIsPrimary) return Size.Empty; Size size = this.CalculateCheckBoxSize(g); size.Width += 6; return size; }
0
2. Example
Project: Bulk-Crap-Uninstaller
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual Size CalculatePrimaryCheckBoxSize(Graphics g) { if (!this.ListView.CheckBoxes || !this.ColumnIsPrimary) return Size.Empty; Size size = this.CalculateCheckBoxSize(g); size.Width += 6; return size; }
0
3. Example
Project: MapViewer
Source File: Renderers.cs
Source File: Renderers.cs
protected Rectangle CalculateCheckBoxBounds(Graphics g, Rectangle cellBounds) { Size checkBoxSize = this.CalculateCheckBoxSize(g); return this.AlignRectangle(cellBounds, new Rectangle(0, 0, checkBoxSize.Width, checkBoxSize.Height)); }
0
4. Example
Project: Bulk-Crap-Uninstaller
Source File: Renderers.cs
Source File: Renderers.cs
protected Rectangle CalculateCheckBoxBounds(Graphics g, Rectangle cellBounds) { Size checkBoxSize = this.CalculateCheckBoxSize(g); return this.AlignRectangle(cellBounds, new Rectangle(0, 0, checkBoxSize.Width, checkBoxSize.Height)); }
0
5. Example
Project: MapViewer
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual int DrawCheckBox(Graphics g, Rectangle r) { // The odd constants are to match checkbox placement in native mode (on XP at least) // TODO: Unify this with CheckStateRenderer // The rectangle r is already horizontally aligned. We still need to align it vertically. Size checkBoxSize = this.CalculateCheckBoxSize(g); Point checkBoxLocation = new Point(r.X, this.AlignVertically(r, checkBoxSize.Height)); if (this.IsPrinting || this.UseCustomCheckboxImages) { int imageIndex = this.ListItem.StateImageIndex; if (this.ListView.StateImageList == null || imageIndex < 0 || imageIndex >= this.ListView.StateImageList.Images.Count) return 0; return this.DrawImage(g, new Rectangle(checkBoxLocation, checkBoxSize), this.ListView.StateImageList.Images[imageIndex]) + 4; } CheckBoxState boxState = this.GetCheckBoxState(this.ListItem.CheckState); CheckBoxRenderer.DrawCheckBox(g, checkBoxLocation, boxState); return checkBoxSize.Width; }
0
6. Example
Project: Bulk-Crap-Uninstaller
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual int DrawCheckBox(Graphics g, Rectangle r) { // The odd constants are to match checkbox placement in native mode (on XP at least) // TODO: Unify this with CheckStateRenderer // The rectangle r is already horizontally aligned. We still need to align it vertically. Size checkBoxSize = this.CalculateCheckBoxSize(g); Point checkBoxLocation = new Point(r.X, this.AlignVertically(r, checkBoxSize.Height)); if (this.IsPrinting || this.UseCustomCheckboxImages) { int imageIndex = this.ListItem.StateImageIndex; if (this.ListView.StateImageList == null || imageIndex < 0 || imageIndex >= this.ListView.StateImageList.Images.Count) return 0; return this.DrawImage(g, new Rectangle(checkBoxLocation, checkBoxSize), this.ListView.StateImageList.Images[imageIndex]) + 4; } CheckBoxState boxState = this.GetCheckBoxState(this.ListItem.CheckState); CheckBoxRenderer.DrawCheckBox(g, checkBoxLocation, boxState); return checkBoxSize.Width; }
0
7. Example
Project: MapViewer
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual void StandardHitTest(Graphics g, OlvListViewHitTestInfo hti, Rectangle alignedCont/n ..... /n //View Source file for more details /n }
0
8. Example
Project: Bulk-Crap-Uninstaller
Source File: Renderers.cs
Source File: Renderers.cs
protected virtual void StandardHitTest(Graphics g, OlvListViewHitTestInfo hti, Rectangle alignedCont/n ..... /n //View Source file for more details /n }