void RenderShading() { if (this.paragraph.Format.IsNull("Shading")) return; ShadingRenderer shadingRenderer = new ShadingRenderer(this.gfx, this.paragraph.Format.Shading); Area area = GetShadingArea(); shadingRenderer.Render(area.X, area.Y, area.Width, area.Height); }
void RenderShading(Cell cell, Rectangle innerRect) { ShadingRenderer shadeRenderer = new ShadingRenderer(this.gfx, cell.Shading); shadeRenderer.Render(innerRect.X, innerRect.Y, innerRect.Width, innerRect.Height); }
private void RenderShading(Cell cell, Rectangle innerRect) { ShadingRenderer shadeRenderer = new ShadingRenderer(_gfx, cell.Shading); shadeRenderer.Render(innerRect.X, innerRect.Y, innerRect.Width, innerRect.Height, cell.RoundedCorner); }
void RenderShading() { if (_paragraph.Format._shading == null || _paragraph.Format._shading.IsNull()) return; ShadingRenderer shadingRenderer = new ShadingRenderer(_gfx, _paragraph.Format.Shading); Area area = GetShadingArea(); shadingRenderer.Render(area.X, area.Y, area.Width, area.Height); }