BrightIdeasSoftware.BlockFormat.CalculatePaddedBox(System.Drawing.RectangleF)

Here are the examples of the csharp api class BrightIdeasSoftware.BlockFormat.CalculatePaddedBox(System.Drawing.RectangleF) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: MapViewer
Source File: ListViewPrinter.cs
public RectangleF CalculatePaddedTextBox(RectangleF cell)
        {
            return this.CalculateTextBox(this.CalculateBorderedBox(this.CalculatePaddedBox(cell)));
        }

2. Example

Project: MapViewer
Source File: ListViewPrinter.cs
public void Draw(Graphics g, RectangleF r, String left, String centre, String right)
        {
            RectangleF paddedRect = this.CalculatePaddedBox(r);
            RectangleF paddedBorderedRect = this.CalculateBorderedBox(paddedRect);
            this.DrawBackground(g, paddedBorderedRect);
            this.DrawText(g, paddedBorderedRect, left, centre, right);
            this.DrawBorder(g, paddedRect);
        }