ShapeFill.SetSolidFill(Color) Method
In This Article
Applies a solid color to a shape.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
color | Color | A color to fill a shape. |
#Remarks
The example below shows how to fill a rectangle with a color.
// 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.SetSolidFill(Color.FromArgb(0xFF, 0xEE, 0xAD));
See Also