.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ShapeFill.Color Property

Gets or sets the fill color for a shape.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.1.Core.dll

Declaration

Color Color { get; set; }

Property Value

Type Description
Color

A color to fill a shape.

Remarks

The example below shows how to fill a rectangle with a color.

Rich_ShapeFill_SolidFill

// Add a rectangle to a document.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
// Fill the rectangle with color.
rectangle.Fill.Color = Color.FromArgb(0xFF, 0xEE, 0xAD);
See Also