Back to Devexpress

DXLinearGradientBrush.InterpolationColors Property

corelibraries-devexpress-dot-drawing-dot-dxlineargradientbrush-2f547f63.md

latest2.3 KB
Original Source

DXLinearGradientBrush.InterpolationColors Property

Gets or sets a multicolor linear gradient.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public DXColorBlend InterpolationColors { get; set; }
vb
Public Property InterpolationColors As DXColorBlend

Property Value

TypeDescription
DXColorBlend

An object that defines a multicolor linear gradient.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InterpolationColors property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-custom-brick/CS/MyBrick.cs#L77

csharp
colorBlend.Colors = new Color[] { EllipseBrick.OuterColor, EllipseBrick.InnerColor, EllipseBrick.OuterColor };
brush.InterpolationColors = colorBlend;
gr.FillEllipse(brush, rect);

reporting-winforms-custom-brick/VB/MyBrick.vb#L84

vb
EllipseBrick.OuterColor}
brush.InterpolationColors = colorBlend
gr.FillEllipse(brush, rect)

See Also

DXLinearGradientBrush Class

DXLinearGradientBrush Members

DevExpress.Drawing Namespace