All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

GradientFill.GradientStops Property

Provides access to the collection of gradient stops.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.2.Core.dll

Declaration

GradientStopCollection GradientStops { get; }
ReadOnly Property GradientStops As GradientStopCollection

Property Value

Type Description
GradientStopCollection

A gradient stop collection.

Remarks

Use the following methods to apply a gradient to a shape or its border:

The GradientFill.GradientStops property allows you to access a GradientStopCollection object that stores existing gradient stops. The collection's methods allow you to add and remove gradient stops.

The example below shows how to apply a two-color gradient to a rectangle and then specify an additional gradient stop.

Rich_ShapeFill_GradientFill_Complex

// Create a rectangle.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
// Apply a gradient to the rectangle.
rectangle.Fill.SetGradientFill(GradientType.Shape, Color.FromArgb(0xFE, 0xD7, 0x66), Color.FromArgb(0x2A, 0x4D, 0x69));
// Access gradient fill settings.
GradientFill gradientFill = rectangle.Fill.GradientFill;
// Add another gradient stop.
gradientFill.GradientStops.Add(new GradientStop(0.5f, Color.FromArgb(0xFF, 0x33, 0x77)));
See Also