BrightIdeasSoftware.HighlightTextRenderer.DrawSubstringFrame C# (CSharp) Метод

DrawSubstringFrame() защищенный Метод

Draw an indication around the given frame that shows a text match
protected DrawSubstringFrame ( Graphics g, float x, float y, float width, float height ) : void
g System.Drawing.Graphics
x float
y float
width float
height float
Результат void
        protected virtual void DrawSubstringFrame(Graphics g, float x, float y, float width, float height)
        {
            if (this.UseRoundedRectangle) {
                using (GraphicsPath path = this.GetRoundedRect(x, y, width, height, 3.0f)) {
                    if (this.FillBrush != null)
                        g.FillPath(this.FillBrush, path);
                    if (this.FramePen != null)
                        g.DrawPath(this.FramePen, path);
                }
            } else {
                if (this.FillBrush != null)
                    g.FillRectangle(this.FillBrush, x, y, width, height);
                if (this.FramePen != null)
                    g.DrawRectangle(this.FramePen, x, y, width, height);
            }
        }