New to Telerik UI for WinForms? Start a free 30-day trial

Renders spreadsheet pattern and gradient fills into one or more graphics rectangles.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public static class FillRenderer

Inheritance: objectFillRenderer

Methods

Renders the configured linear, corner-based, or center-based gradient in each target rectangle. Theme-based gradient colors are resolved through colorScheme.

C#
public static void RenderFill(IGraphics graphics, GradientFill fill, ThemeColorScheme colorScheme, params RectangleF[] rects)
Parameters:graphicsIGraphics

The graphics surface used for rendering.

fillGradientFill

The gradient definition; if null, nothing is drawn.

colorSchemeThemeColorScheme

The theme color scheme used to resolve the gradient colors.

rectsRectangleF[]

The destination rectangles to fill.

Renders a pattern fill, tiling non-solid patterns across each target rectangle. Theme-based fill colors are resolved through colorScheme.

C#
public static void RenderFill(IGraphics graphics, PatternFill fill, ThemeColorScheme colorScheme, params RectangleF[] rects)
Parameters:graphicsIGraphics

The graphics surface used for rendering.

fillPatternFill

The pattern definition; if null, nothing is drawn.

colorSchemeThemeColorScheme

The theme color scheme used to resolve the fill colors.

rectsRectangleF[]

The destination rectangles to fill.